getBooleanOrFail method

bool getBooleanOrFail(
  1. String optionName
)

Returns an bool if the command has the designed option

Example :

final bool boolean = interaction.getBooleanOrFail('option_name');

Implementation

bool getBooleanOrFail (String optionName) {
  return params[optionName];
}