- resolveChannel<C extends GuildBasedChannel>(
text: string,
channels: Collection<string, C>,
caseSensitive?: boolean,
wholeWord?: boolean,
): C | null Type Parameters
- C extends GuildBasedChannel
Parameters
- text: string
- channels: Collection<string, C>
- caseSensitive: boolean = false
- wholeWord: boolean = false
Returns C | null
Resolves a channel from a string, such as an ID, a name, or a mention.