categoryGuildChannelConverter top-level constant Null safety

GuildChannelConverter<ICategoryGuildChannel> const categoryGuildChannelConverter

A converter that converts input to an ICategoryGuildChannel.

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

Implementation

const GuildChannelConverter<ICategoryGuildChannel> categoryGuildChannelConverter =
    GuildChannelConverter([
  ChannelType.category,
]);