CommandsOptions class
Options that modify how the CommandsPlugin instance works.
You might also be interested in:
- CommandOptions, the options for individual Options instances.
- Implemented types
Constructors
- CommandsOptions({bool logErrors = true, bool autoAcknowledgeInteractions = true, Duration? autoAcknowledgeDuration, bool acceptBotCommands = false, bool acceptSelfCommands = false, ResponseLevel defaultResponseLevel = ResponseLevel.public, CommandType type = CommandType.all, bool inferDefaultCommandType = true, bool caseInsensitiveCommands = true})
-
Create a new set of CommandsOptions.
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
- inferDefaultCommandType → bool
-
Whether to infer the default command type.
final
- logErrors → bool
-
Whether to automatically log exceptions.
final
- 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