mentionableConverter top-level constant Null safety

Converter<Mentionable> const mentionableConverter

A converter that converts input to a Mentionable.

This will first attempt to convert the input as a member, then as a role.

This converter has a Discord Slash Command argument type of CommandOptionType.mentionable.

Implementation

const Converter<Mentionable> mentionableConverter = FallbackConverter(
  [
    memberConverter,
    roleConverter,
  ],
  type: CommandOptionType.mentionable,
);