Class

TextChannel

A text channel in a guild (supports sending messages).

Extends TextCapable(GuildChannel)

Constructor

new TextChannel(client: Client, data: APIChannel)
client
Client

Properties

NameTypeDescription
contentWarningLevel?number | nullContent warning level.
contentWarningText?string | nullCustom content warning text.
lastMessageId?string | nullID of the last message sent in this channel.
nsfw?booleanWhether this channel is marked as NSFW.
nsfwOverride?boolean | nullPer-channel NSFW override (null inherits).
rateLimitPerUser?numberSlowmode rate limit in seconds.
topic?string | nullChannel topic.

Methods

.setSlowmode(seconds)

seconds: numberPromise<this>

Set slowmode (seconds between messages). Pass 0 to disable. Requires Manage Channels. Calls channel.edit with rateLimitPerUser.

await channel.setSlowmode(seconds);