Interactions class Null safety

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

Constructors

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

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
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. [...]
inherited

Operators

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