Abstract
Represents any channel on Discord.
Extends
BaseConstructs a new instance of the
BaseChannel
className | Type | Optional | Description |
---|---|---|---|
client | Client<true> | No | None |
data | RawChannelData | Yes | None |
immediatePatch | boolean | Yes | None |
The flags that are applied to the channel. This is only
null
in a PartialGroupDMChannel. In all other cases, it is not null
.Deletes this channel.
Example
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).
Indicates whether this channel is sendable.
Indicates whether this channel is text-based.
Indicates whether this channel is a .
Indicates whether this channel is .
Indicates whether this channel is .
When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.