getBoolean method Null safety
- String optionName
Returns an bool or null if the command has the designed option
Example :
bool? boolean = interaction.getBoolean('option_name');
Implementation
bool? getBoolean (String optionName) {
return params[optionName];
}