Package com.github.kaktushose.jda.commands.annotations.interactions
package com.github.kaktushose.jda.commands.annotations.interactions
Annotations needed for interactions.
-
ClassDescriptionMethods annotated with AutoComplete will be registered as a handler for
AutoCompleteEvent
s for the given SlashCommand.Methods annotated withButton
will be registered as a button at startup.Annotation used to add choices to parameters.Enum describing the two possible scopes a command can be registered for.Methods annotated with ContextMenu will be registered as a context menu command.Commands annotated with Cooldown will have a per-user cooldown.Methods annotated with EntitySelectMenu will be registered as a EntitySelectMenu at startup.Classes annotated withInteraction
are responsible for defining and handling interactions.Methods annotated withModal
will be registered as a modal at startup.Parameters annotated with Optional are as the name says optional.Annotation used to add a name and description to slash command parameters.Interaction
classes or interaction methods (commands, components or modals) annotated with Permission will require the user to have the given permissions in order to execute the command.Used to configure the reply behaviour of interaction replies.Used to defineSelectOptions
forStringSelectMenu
s.Methods annotated with SlashCommand will be registered as a slash command at startup.Methods annotated with StringSelectMenu will be registered as a StringSelectMenu at startup.Annotation used to add TextInputs toModal
s.