Represents a guild category channel on Discord.
Extends
GuildChannelThe time the channel was created at
Inherited from GuildChannelThe timestamp the channel was created at
Inherited from GuildChannelWhether the channel is deletable by the client user
Inherited from GuildChannelThe flags that are applied to the channel. This is only
Inherited from GuildChannelnull
in a PartialGroupDMChannel. In all other cases, it is not null
.The guild the channel is in
Inherited from GuildChannelThe id of the guild the channel is in
Inherited from GuildChannelThe channel's id
Inherited from BaseChannelWhether the channel is manageable by the client user
Inherited from GuildChannelA 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.
Inherited from GuildChannelThe name of the guild channel
Inherited from GuildChannelWhether this Channel is a partial This is always false outside of DM channels.
Inherited from BaseChannelA manager of permission overwrites that belong to this channel
Inherited from GuildChannelIf the permissionOverwrites match the parent channel, null if no parent
Inherited from GuildChannelThe position of the channel
Inherited from GuildChannelThe raw position of the channel from Discord
Inherited from GuildChannelThe type of the channel
The URL to the channel
Inherited from BaseChannelWhether the channel is viewable by the client user
Inherited from GuildChannelClones this channel.
Name | Type | Optional | Description |
---|---|---|---|
options | GuildChannelCloneOptions | Yes | The options for cloning this channel |
Deletes this channel.
Example
Name | Type | Optional | Description |
---|---|---|---|
reason | string | Yes | Reason for deleting this channel |
Edits the channel.
Example
Name | Type | Optional | Description |
---|---|---|---|
options | GuildChannelEditOptions | No | The options to provide |
Checks if this channel has the same type, topic, position, name, overwrites, and id as another channel. In most cases, a simple
channel.id === channel2.id
will do, and is much faster too.Name | Type | Optional | Description |
---|---|---|---|
channel | GuildChannel | No | Channel to compare with |
Fetches this channel.
Name | Type | Optional | Description |
---|---|---|---|
force | boolean | Yes | Whether to skip the cache check and request the API |
Indicates whether this channel is DM-based (either a or a PartialGroupDMChannel).
Inherited from BaseChannelIndicates whether this channel is sendable.
Inherited from BaseChannelIndicates whether this channel is text-based.
Inherited from GuildChannelIndicates whether this channel is a .
Inherited from BaseChannelIndicates whether this channel is .
Inherited from BaseChannelIndicates whether this channel is .
Inherited from BaseChannelLocks in the permission overwrites from the parent channel.
Inherited from GuildChannelGets the overall set of permissions for a member or role in this channel, taking into account channel overwrites.
Returns
Name | Type | Optional | Description |
---|---|---|---|
memberOrRole | GuildMember | Role | No | The member or role to obtain the overall permissions for |
checkAdmin | boolean | Yes | Whether having the PermissionFlagsBits.Administrator permission will return all permissions |
Sets the category parent of this channel. It is not possible to set the parent of a CategoryChannel.
Name | Type | Optional | Description |
---|---|---|---|
channel | CategoryChannelResolvable | No | The channel to set as parent |
options | SetParentOptions | Yes | The options for setting the parent |
Sets a new position for the guild channel.
Example
Name | Type | Optional | Description |
---|---|---|---|
position | number | No | The new position for the guild channel |
options | SetChannelPositionOptions | Yes | Options for setting position |
When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.
Inherited from GuildChannel