.fetch(channelId)
channelId: string → Promise<Channel>
Fetch a channel by ID (returns cache if present).
await client.channels.fetch(channelId);Class
Channel cache + fetch/send helpers. Extends Collection (.get(), .set(), .filter(), …).
Extends Collection
new ChannelManager(client: Client)ClientchannelId: string → Promise<Channel>
Fetch a channel by ID (returns cache if present).
await client.channels.fetch(channelId);channelId: string, messageId: string → Promise<Message>
Fetch a message by channel + message ID (no channel resolve required). Prefer channel.messages.fetch(messageId) when you already have a text channel.
await client.channels.fetchMessage(channelId, messageId);channelId: string → Promise<Channel>
Retrieve from cache, otherwise fetch.
await client.channels.resolve(channelId);channelId: string, payload: MessagePrepareInput → Promise<Message>
Send to a channel by ID without resolving it first.
await client.channels.send(logChannelId, 'User joined!');key: string, value: Channel → this
Set a channel in the cache (evicts oldest if at capacity).
client.channels.set(key, value);