InteractionEvent class Null safety
The event that you receive when a user types a slash command.
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- hasResponded ↔ bool
-
If the Client has sent a response to the Discord API. Once the API was received a response you cannot send another.
read / write
- interaction ↔ Interaction
-
The interaction data, includes the args, name, guild, channel, etc.
read / write, final, late
- receivedAt → DateTime
-
The DateTime the interaction was received by the Nyxx Client.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
acknowledge(
{bool showSource = 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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
reply(
{dynamic content, EmbedBuilder? embed, bool? tts, AllowedMentions? allowedMentions, bool showSource = false}) → Future< void> - Used to acknowledge a Interaction and send a response. Once this is sent you can then only send ChannelMessages. You can also set showSource to also print out the command the user entered.
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited