ApplicationCommandType.parse constructor
- int value
Parse an ApplicationCommandType from an int.
The value
must be a valid application command type.
Implementation
factory ApplicationCommandType.parse(int value) => ApplicationCommandType.values.firstWhere(
(type) => type.value == value,
orElse: () => throw FormatException('Unknown application command type', value),
);