Uses of Enum Class
com.github.kaktushose.jda.commands.annotations.interactions.CommandScope
Package
Description
Annotations needed for interactions.
Definitions
that represent a command interaction.-
Uses of CommandScope in com.github.kaktushose.jda.commands.annotations.interactions
Modifier and TypeClassDescriptionenum
Enum describing the two possible scopes a command can be registered for.Modifier and TypeMethodDescriptionstatic CommandScope
Returns the enum constant of this class with the specified name.static CommandScope[]
CommandScope.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of CommandScope in com.github.kaktushose.jda.commands.definitions.interactions.command
Modifier and TypeMethodDescription@NotNull CommandScope
CommandDefinition.scope()
TheCommandScope
of this command.@NotNull CommandScope
ContextCommandDefinition.scope()
Returns the value of thescope
record component.@NotNull CommandScope
SlashCommandDefinition.scope()
Returns the value of thescope
record component.ModifierConstructorDescriptionContextCommandDefinition
(@NotNull ClassDescription clazzDescription, @NotNull MethodDescription methodDescription, @NotNull Collection<String> permissions, @NotNull String name, Command.Type commandType, @NotNull CommandScope scope, boolean guildOnly, boolean nsfw, @NotNull Set<Permission> enabledPermissions, @NotNull LocalizationFunction localizationFunction) Creates an instance of aContextCommandDefinition
record class.SlashCommandDefinition
(@NotNull ClassDescription clazzDescription, @NotNull MethodDescription methodDescription, @NotNull Collection<String> permissions, @NotNull String name, @NotNull CommandScope scope, boolean guildOnly, boolean nsfw, @NotNull Set<Permission> enabledPermissions, @NotNull LocalizationFunction localizationFunction, @NotNull String description, @NotNull SequencedCollection<OptionDataDefinition> commandOptions, @NotNull SlashCommandDefinition.CooldownDefinition cooldown, boolean isAutoComplete) Creates an instance of aSlashCommandDefinition
record class.