CommandsOptions class Null safety
Options that modify how the CommandsPlugin instance works.
You might also be interested in:
- CommandOptions, the options for individual IOptions instances.
- Implemented types
Constructors
- CommandsOptions({bool logErrors = true, bool autoAcknowledgeInteractions = true, bool acceptBotCommands = false, bool acceptSelfCommands = false, InteractionBackend? backend, bool hideOriginalResponse = true, CommandType defaultCommandType = CommandType.all})
-
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
- autoAcknowledgeInteractions → bool
-
Whether to automatically acknowledge interactions before they expire.
final
- backend → InteractionBackend?
-
The InteractionBackend to use for creating the IInteractions instance.
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
- logErrors → bool
-
Whether to automatically log exceptions.
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