getInteger method

int? getInteger(
  1. 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];
}