CommandsOptions class Null safety

Optional commands options.

Constructors

CommandsOptions({bool logErrors = true, bool autoAcknowledgeInteractions = true, bool acceptBotCommands = false, bool acceptSelfCommands = false, InteractionBackend? backend, bool hideOriginalResponse = true})
Create a new CommandsOptions instance.
const

Properties

acceptBotCommands bool
Whether to process commands coming from bot users on Discord.
final
acceptSelfCommands bool
Whether to process commands coming from the bot's own user. [...]
final
autoAcknowledgeInteractions bool
Whether to automatically acknowledge slash command interactions if they are not acknowledged or responded to within 2s of command invocation. [...]
final
backend InteractionBackend?
A custom InteractionBackend to use when creating the IInteractions instance.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hideOriginalResponse bool
Whether to set the EPHEMERAL flag in the original response to interaction events. [...]
final
logErrors bool
Whether to log CommandsExceptions that occur when received from CommandsPlugin.onCommandError.
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