fetchTextChannel

async fetchTextChannel(channelId: string) Promise<TextChannel | null>

Fetches a channel that can receive messages. Returns null for voice, category, forum, stage, or missing channels.

Parameters:
  • channelId — – The channel ID to fetch.