Represents a guild text channel on Discord.
Extends
BaseGuildTextChannelThe default auto archive duration for newly created threads in this channel
Inherited from BaseGuildTextChannelThe initial rate limit per user (slowmode) to set on newly created threads in a channel.
Inherited from BaseGuildTextChannelIf the guild considers this channel NSFW
Inherited from BaseGuildTextChannelA manager of the threads belonging to this channel
The topic of the text channel
Inherited from BaseGuildTextChannelThe type of the channel
Creates an invite to this guild channel.
Name | Type | Optional | Description |
---|---|---|---|
options | InviteCreateOptions | Yes | The options for creating the invite |
Fetches a collection of invites to this guild channel. Resolves with a collection mapping invites by their codes.
Name | Type | Optional | Description |
---|---|---|---|
cache | boolean | Yes | Whether or not to cache the fetched invites |
Sets the default auto archive duration for all newly created threads in this channel.
Name | Type | Optional | Description |
---|---|---|---|
defaultAutoArchiveDuration | ThreadAutoArchiveDuration | No | The new default auto archive duration |
reason | string | Yes | Reason for changing the channel's default auto archive duration |
Sets a new topic for the guild channel.
Name | Type | Optional | Description |
---|---|---|---|
topic | string | null | No | The new topic for the guild channel |
reason | string | Yes | Reason for changing the guild channel's topic |
Sets the type of this channel. Only conversion between TextChannel and NewsChannel is supported.
Name | Type | Optional | Description |
---|---|---|---|
type | ChannelType.GuildText | No | The new channel type |
reason | string | Yes | Reason for changing the channel's type |