mentionableConverter top-level constant

Converter<CommandOptionMentionable<CommandOptionMentionable>> const mentionableConverter

A converter that converts input to a CommandOptionMentionable.

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

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

Implementation

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