Table of Contents

Interface ITextChannel

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a generic channel in a guild that can send and receive messages.

public interface ITextChannel : INestedChannel, IGuildChannel, IDeletable, IMentionable, IMessageChannel, IChannel, IEntity<ulong>
Inherited Members
Extension Methods

Properties

SlowModeInterval

Gets the current slow-mode delay for this channel.

int SlowModeInterval { get; }

Property Value

int

An int representing the time in seconds required before the user can send another message; 0 if disabled.

Topic

Gets the current topic for this text channel.

string Topic { get; }

Property Value

string

A string representing the topic set in the channel; null if none is set.

Methods

GetPinnedMessagesAsync(RequestOptions?)

Gets a collection of pinned messages in this channel.

Task<IReadOnlyCollection<IMessage>> GetPinnedMessagesAsync(RequestOptions? options = null)

Parameters

options RequestOptions

The options to be used when sending the request.

Returns

Task<IReadOnlyCollection<IMessage>>

A task that represents the asynchronous get operation for retrieving pinned messages in this channel. The task result contains a collection of messages found in the pinned messages.

ModifyAsync(Action<ModifyTextChannelProperties>, RequestOptions?)

Modifies this text channel.

Task ModifyAsync(Action<ModifyTextChannelProperties> func, RequestOptions? options = null)

Parameters

func Action<ModifyTextChannelProperties>

The delegate containing the properties to modify the channel with.

options RequestOptions

The options to be used when sending the request.

Returns

Task

A task that represents the asynchronous modification operation.

See Also