type property

  1. @override
CommandOptionType type
override

The Discord Slash Command Argument Type of the type that this converter parses.

Setting this to CommandOptionType.subCommand or CommandOptionType.subCommandGroup will result in an error. Use ChatGroup instead.

Implementation

@override
CommandOptionType get type => _type ?? converter.type;