nyxx_interactions library Null safety

Classes

ArgChoice
Choice that user can pick from. For CommandOptionType.integer or CommandOptionType.string
ArgChoiceBuilder
A specified choice for a slash command argument.
CommandOption
An argument for a SlashCommand.
CommandOptionBuilder
An argument for a SlashCommandBuilder.
CommandOptionType
The type that a user should input for a CommandOptionBuilder
Interaction
The Interaction data. e.g channel, guild and member
InteractionEvent
The event that you receive when a user types a slash command.
InteractionOption
The option given by the user when sending a command
Interactions
Interaction extension for Nyxx. Allows use of: Slash Commands.
SlashCommand
Represents slash command that is returned from Discord API.
SlashCommandBuilder
A slash command, can only be instantiated through a method on Interactions

Typedefs

SlashCommandHandler(InteractionEvent) FutureOr<void>
Function that will handle execution of interaction event

Exceptions / Errors

AlreadyRespondedError
Thrown when you have already responded to an interaction
InteractionExpiredError
Thrown when 15 minutes has passed since an interaction was called.