class ChannelManager
extends
CachedManager<Snowflake, Channel, ChannelResolvable>export class ChannelManager extends CachedManager<Snowflake, Channel, ChannelResolvable>A manager of channels belonging to a client
readonlycache : Collection<Key, Holds>
The cache of items for this manager.
Inherited from: DataManager
readonlyholds : Constructable<Holds>
The data structure belonging to this manager.
Inherited from: DataManager
fetch(id: Snowflakeoptions?: FetchChannelOptions) : Promise<Channel | null>
id: Snowflake
options?: FetchChannelOptions
Obtains a channel from Discord, or the channel cache if it's already available.
Examples:
// Fetch a channel by its id
client.channels.fetch('222109930545610754')
.then(channel => console.log(channel.name))
.catch(console.error); resolve(channel: ChannelResolvable) : BaseChannel | null
channel: ChannelResolvable
Resolves a ChannelResolvable to a Channel object.
resolveId(channel: ChannelResolvable) : Snowflake | null
channel: ChannelResolvable
Resolves a ChannelResolvable to a channel id string.
valueOf() : Collection<Key, Holds>
Inherited from: DataManager