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.
ButtonBuilder
Button which will generate event when clicked.
CommandOption
An argument for a SlashCommand.
CommandOptionBuilder
An argument for a SlashCommandBuilder.
CommandOptionType
The type that a user should input for a CommandOptionBuilder
ComponentInteraction
Interaction for button, dropdown, etc.
ComponentInteractionEvent
ComponentMessageBuilder
Extended MessageBuilder with support for buttons
IComponentBuilder
Allows to build button. Generic interface for all types of buttons
Interaction
The Interaction data. e.g channel, guild and member
InteractionEvent<T extends Interaction>
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.
LinkButtonBuilder
Allows to create a button with link
SlashCommand
Represents slash command that is returned from Discord API.
SlashCommandBuilder
A slash command, can only be instantiated through a method on Interactions
SlashCommandInteraction
Interaction for slash command
SlashCommandInteractionEvent

Properties

slashCommandNameRegex RegExp
Slash command names and subcommands names have to match this regex
final

Typedefs

ButtonInteractionHandler(ComponentInteractionEvent) FutureOr<void>
Function that will handle execution of button interaction event
RawApiMap = Map<String, dynamic>
SlashCommandHandler(SlashCommandInteractionEvent) FutureOr<void>
Function that will handle execution of slash command 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.
ResponseRequiredError
Thrown when you haven't sent a response yet