nyxx_interactions library

Classes

ArgChoiceBuilder
A specified choice for a slash command argument.
ButtonBuilder
Button which will generate event when clicked.
CommandOptionBuilder
An argument for a SlashCommandBuilder.
CommandOptionType
The type that a user should input for a CommandOptionBuilder
CommandPermissionBuilderAbstract
Used to define permissions for a particular command.
ComponentMessageBuilder
Extended MessageBuilder with support for buttons
ComponentRowBuilder
Helper builder to provide fluid api for building component rows
IArgChoice
IAutocompleteInteractionEvent
IButtonInteraction
IButtonInteractionEvent
ICommandOption
ICommandsSync
Used to make multiple methods of checking if the slash commands have been edited since last update
IComponentInteraction
IComponentInteractionEvent<T extends IComponentInteraction>
IEventController
IInteraction
IInteractionDataResolved
IInteractionEvent<T extends IInteraction>
IInteractionEventWithAcknowledge<T extends IInteraction>
IInteractionOption
IInteractions
IInteractionsEndpoints
IMultiselectInteraction
IMultiselectInteractionEvent
InteractionBackend
InteractionEventAbstract<T extends IInteraction>
InteractionEventWithAcknowledge<T extends IInteraction>
IPartialChannel
ISlashCommand
ISlashCommandInteraction
ISlashCommandInteractionEvent
LinkButtonBuilder
Allows to create a button with link
LockFileCommandSync
Manually define command syncing rules
ManualCommandSync
Manually define command syncing rules
MultiselectBuilder
Allows to create multi select interactive components.
MultiselectOptionBuilder
Allows to create multi select option for MultiselectBuilder
RoleCommandPermissionBuilder
A permission for a single role that can be used in SlashCommandBuilder
SlashCommandBuilder
A slash command, can only be instantiated through a method on Interactions
SlashCommandType
Type of the slash command. Since context menus reuses slash commands backed, slash commands cna have different types based on context.
UserCommandPermissionBuilder
A permission for a single user that can be used in SlashCommandBuilder
WebsocketInteractionBackend

Properties

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

Typedefs

AutocompleteInteractionHandler = FutureOr<void> Function(IAutocompleteInteractionEvent)
Function that will handle execution of button interaction event
ButtonInteractionHandler = FutureOr<void> Function(IButtonInteractionEvent)
Function that will handle execution of button interaction event
MultiselectInteractionHandler = FutureOr<void> Function(IMultiselectInteractionEvent)
Function that will handle execution of dropdown event
SlashCommandHandler = FutureOr<void> Function(ISlashCommandInteractionEvent)
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