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