CommandOptions class Null safety

Options that modify how a command behaves.

You might also be interested in:

  • IOptions, the interface for entities that support options;
  • CommandsOptions, the settings for the entire nyxx_commands package.
Implementers

Constructors

CommandOptions({bool? autoAcknowledgeInteractions, bool? acceptBotCommands, bool? acceptSelfCommands, bool? hideOriginalResponse, CommandType? defaultCommandType})
Create a set of command options.
const

Properties

acceptBotCommands bool?
Whether to accept messages sent by bot accounts as possible commands.
final
acceptSelfCommands bool?
Whether to accept messages sent by the bot itself as possible commands.
final
autoAcknowledgeInteractions bool?
Whether to automatically acknowledge interactions before they expire.
final
defaultCommandType CommandType?
The default CommandType for ChatCommands that are children of this entity.
final
hashCode int
The hash code for this object.
read-only, inherited
hideOriginalResponse bool?
Whether to hide the response from other users when the command is invoked from an interaction.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited