class DirectoryChannel
extends
BaseChannelexport class DirectoryChannel extends BaseChannel
Represents a channel that displays a directory of guilds.
The timestamp the channel was created at
Inherited from: BaseChannel
Readonly<ChannelFlagsBitField> flags :
The flags that are applied to the channel. This is only null
in a PartialGroupDMChannel. In all other cases, it is not null
.
InviteGuild guild :
The guild the channel is in
Snowflake guildId :
The id of the guild the channel is in
string name :
The channel's name
Whether this Channel is a partial This is always false outside of DM channels.
Inherited from: BaseChannel
deletePromise<this> () :
Deletes this channel.
// Delete the channel
channel.delete()
.then(console.log)
.catch(console.error);
Inherited from: BaseChannel
isDMBasedthis is PartialGroupDMChannel | DMChannel | PartialDMChannel () :
Indicates whether this channel is DM-based (either a DMChannel or a PartialGroupDMChannel).
Inherited from: BaseChannel
isTextBasedthis is TextBasedChannel () :
Indicates whether this channel is .
Inherited from: BaseChannel
isThreadthis is AnyThreadChannel () :
Indicates whether this channel is a ThreadChannel.
Inherited from: BaseChannel
isThreadOnlythis is ThreadOnlyChannel () :
Indicates whether this channel is thread-only.
Inherited from: BaseChannel
isVoiceBasedthis is VoiceBasedChannel () :
Indicates whether this channel is voice-based.
Inherited from: BaseChannel
toStringChannelMention | UserMention () :
When concatenated with a string, this automatically returns the channel's mention instead of the Channel object.
// Logs: Hello from <#123456789012345678>!
console.log(`Hello from ${channel}!`);
Inherited from: BaseChannel