Represents a text-based guild channel on Discord.
Extends
TextBasedChannelMixin(GuildChannel, true)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 |