InteractionContext class Null safety
Represents a Context triggered by a slash command (ISlashCommandInteraction).
Constructors
-
InteractionContext({required CommandsPlugin commands, required IGuild? guild, required ITextChannel channel, required IMember? member, required IUser user, required Command command, required INyxx client, required ISlashCommandInteraction interaction, required Map<
String, dynamic> rawArguments, required ISlashCommandInteractionEvent interactionEvent}) - Construct a new InteractionContext
Properties
- arguments ↔ Iterable
-
The list of arguments parsed from this context.
late, final, inherited
- channel → ITextChannel
-
The channel in which this context was executed.
final, inherited
- client → INyxx
-
The INyxx client from which this command was dispatched
final, inherited
- command → Command
-
The command triggered in this context.
final, inherited
- commands → CommandsPlugin
-
The CommandsPlugin that triggered this context's execution.
final, inherited
- guild → IGuild?
-
The IGuild in which this context was executed, if any.
final, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- interaction → ISlashCommandInteraction
-
The ISlashCommandInteraction that triggered this context's execution.
final
- interactionEvent → ISlashCommandInteractionEvent
-
The ISlashCommandInteractionEvent that triggered this context's exeecution.
final
- member → IMember?
-
The member that triggered this context's execution, if any. [...]
final, inherited
-
rawArguments
↔ Map<
String, dynamic> -
The raw arguments received from the API, mapped by name to value.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- user → IUser
-
The user that triggered this context's execution.
final, inherited
Methods
-
acknowledge(
→ Future< )void> - Acknowledge the underlying interactionEvent. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
respond(
MessageBuilder builder, {bool private = false, ) → Future< IMessage> -
Send a response to the command. This is the same as send but it references the original
command. [...]
override
-
send(
MessageBuilder builder) → Future< IMessage> -
Send a message to this context's channel.
@Deprecated('Use context.respond(), or context.channel.sendMessage() instead'), inherited
-
toString(
) → String -
A string representation of this object. [...]
override
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited