class DirectoryChannel
extends
BaseChannelexport class DirectoryChannel extends BaseChannelRepresents a channel that displays a directory of guilds.
The timestamp the channel was created at
Inherited from: BaseChannel
flags : Readonly<ChannelFlagsBitField>
The flags that are applied to the channel. This is only null in a PartialGroupDMChannel. In all other cases, it is not null.
guild : InviteGuild
The guild the channel is in
guildId : Snowflake
The id of the guild the channel is in
name : string
The channel's name
Whether this Channel is a partial This is always false outside of DM channels.
Inherited from: BaseChannel
delete() : Promise<this>
Deletes this channel.
// Delete the channel
channel.delete()
.then(console.log)
.catch(console.error);Inherited from: BaseChannel
isDMBased() : this is PartialGroupDMChannel | DMChannel | PartialDMChannel
Indicates whether this channel is DM-based (either a DMChannel or a PartialGroupDMChannel).
Inherited from: BaseChannel
isSendable() : this is SendableChannels
Indicates whether this channel is sendable.
Inherited from: BaseChannel
isTextBased() : this is TextBasedChannel
Indicates whether this channel is text-based.
Inherited from: BaseChannel
isThread() : this is AnyThreadChannel
Indicates whether this channel is a ThreadChannel.
Inherited from: BaseChannel
isThreadOnly() : this is ThreadOnlyChannel
Indicates whether this channel is thread-only.
Inherited from: BaseChannel
isVoiceBased() : this is VoiceBasedChannel
Indicates whether this channel is voice-based.
Inherited from: BaseChannel
toString() : ChannelMention
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}!`);