Interactions class Null safety

Interaction extension for Nyxx. Allows use of: Slash Commands.


Interactions(Nyxx _client)
Create new instance of the interactions class.


hashCode int
The hash code for this object. [...]
read-only, inherited
onSlashCommand Stream<InteractionEvent>
Emitted when a slash command is sent.
read / write, final, late
onSlashCommandCreated Stream<SlashCommand>
Emitted when a slash command is created by the user.
read / write, final, late
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
registerSlashCommand(SlashCommandBuilder slashCommandBuilder) → void
Allows to register new SlashCommandBuilder
sync() Future<void>
Syncs command builders with discord immediately. Warning: Client could not be ready at the function execution. Use syncOnReady for proper behavior
syncOnReady() → void
Syncs commands builders with discord after client is ready.
toString() String
A string representation of this object. [...]


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