Represents a text-based guild channel on Discord.
Extends
TextBasedChannelMixin(GuildChannel, true)Constructs a new instance of the
BaseGuildTextChannel class| Name | Type | Optional | Description |
|---|---|---|---|
| guild | Guild | No | None |
| data | RawGuildChannelData | Yes | None |
| client | Client<true> | Yes | None |
| immediatePatch | boolean | Yes | None |
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.
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 |