getBoolean method

bool? getBoolean(
  1. 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];
}