guildChannelConverter top-level constant Null safety

GuildChannelConverter<IGuildChannel> const guildChannelConverter

A converter that converts input to an IGuildChannel.

This will first attempt to parse the input as a Snowflake that will then be converted to an IGuildChannel. If this fails, the channel will be looked up by name in the current guild.

This converter has a Discord Slash Command argument type of CommandOptionType.channel and is set to accept all channel types.

Implementation

const GuildChannelConverter<IGuildChannel> guildChannelConverter = GuildChannelConverter(null);