stageVoiceChannelConverter top-level constant Null safety

GuildChannelConverter<IStageVoiceGuildChannel> const stageVoiceChannelConverter

A converter that converts input to an IStageVoiceGuildChannel.

This will first attempt to parse the input as a Snowflake that will then be converted to an IStageVoiceGuildChannel. 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 channels of type ChannelType.guildStage.

Implementation

const GuildChannelConverter<IStageVoiceGuildChannel> stageVoiceChannelConverter =
    GuildChannelConverter([
  ChannelType.guildStage,
]);