SlashCommandInteractionEvent class Null safety

Event for slash commands

Inheritance

Properties

args List<InteractionOption>
Returns args of interaction
read-only
client Nyxx
Reference to Nyxx
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
interaction SlashCommandInteraction
Interaction data for slash command
late, final, override-getter
interactions Interactions
Reference to Interactions
late, final, inherited
receivedAt DateTime
The DateTime the interaction was received by the Nyxx Client.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

acknowledge({bool hidden = false}) Future<void>
Used to acknowledge a Interaction but not send any response yet. Once this is sent you can then only send ChannelMessages. You can also set showSource to also print out the command the user entered.
inherited
deleteFollowup(Snowflake messageId) Future<void>
Deletes followup message with given id
inherited
deleteOriginalResponse() Future<void>
Deletes original response
inherited
editFollowup(Snowflake messageId, MessageBuilder builder) Future<Message>
Edits followup message
inherited
editOriginalResponse(MessageBuilder builder) Future<Message>
Edits original message response
inherited
fetchFollowup(Snowflake messageId) Future<Message>
Fetch followup message
inherited
getArg(String name) InteractionOption
Searches for arg with name in this interaction
getOriginalResponse() Future<Message>
Returns Message object of original interaction response
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
respond(MessageBuilder builder, {bool hidden = false}) Future<void>
Used to acknowledge a Interaction and send a response. Once this is sent you can then only send ChannelMessages.
inherited
sendFollowup(MessageBuilder builder) Future<Message>
Create a followup message for an Interaction
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited