Represents a media channel.
Extends
ThreadOnlyChannelThe flags that are applied to the channel. This is only
null
in a PartialGroupDMChannel. In all other cases, it is not null
.A collection of cached members of this channel, mapped by their ids. Members that can view this channel, if the channel is text-based. Members in the channel, if the channel is voice-based.
The type of the channel
Creates an invite to this guild channel.
Example
Name | Type | Optional | Description |
---|---|---|---|
options | InviteCreateOptions | Yes | The options for creating the invite |
Creates a webhook for the channel.
Returns
Returns the created Webhook *Example
Name | Type | Optional | Description |
---|---|---|---|
options | ChannelWebhookCreateOptions | Yes | Options for creating the webhook |
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 to cache the fetched invites |
Fetches all webhooks for the channel.
Inherited from ThreadOnlyChannelExample
Sets the available tags for this forum channel
Name | Type | Optional | Description |
---|---|---|---|
availableTags | GuildForumTagData[] | No | The tags to set as available in this channel |
reason | string | Yes | Reason for changing the available tags |
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 the default reaction emoji for this channel
Name | Type | Optional | Description |
---|---|---|---|
defaultReactionEmoji | DefaultReactionEmoji | null | No | The emoji to set as the default reaction emoji |
reason | string | Yes | Reason for changing the default reaction emoji |
Sets the default sort order mode used to order posts
Name | Type | Optional | Description |
---|---|---|---|
defaultSortOrder | SortOrderType | null | No | The default sort order mode to set on this channel |
reason | string | Yes | Reason for changing the default sort order |
Sets the default rate limit per user (slowmode) for new threads in this channel
Inherited from ThreadOnlyChannel