getIntegerOrFail method

int getIntegerOrFail(
  1. String optionName
)

Returns an int or null if the command has the designed option

Example :

final int value = interaction.getIntegerOrFail('option_name');

Implementation

int getIntegerOrFail (String optionName) {
  return params[optionName];
}