CommandOptions class
Options that modify how a command behaves.
You might also be interested in:
- Options, the interface for entities that support options;
- CommandsOptions, the settings for the entire nyxx_commands package.
- Implementers
Constructors
- CommandOptions({bool? autoAcknowledgeInteractions, Duration? autoAcknowledgeDuration, bool? acceptBotCommands, bool? acceptSelfCommands, ResponseLevel? defaultResponseLevel, CommandType? type, bool? caseInsensitiveCommands})
-
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
- autoAcknowledgeDuration → Duration?
-
The duration after which to automatically acknowledge interactions.
final
- autoAcknowledgeInteractions → bool?
-
Whether to automatically acknowledge interactions before they expire.
final
- caseInsensitiveCommands → bool?
-
Whether command fetching should be case insensitive.
final
- defaultResponseLevel → ResponseLevel?
-
The ResponseLevel to use in commands if not explicit.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CommandType?
-
The type of ChatCommands that are children of this entity.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited