Record Class SlashCommandDefinition

java.lang.Object
java.lang.Record
com.github.kaktushose.jda.commands.definitions.interactions.command.SlashCommandDefinition
Record Components:
clazzDescription - the ClassDescription of the declaring class of the methodDescription()
methodDescription - the MethodDescription of the method this definition is bound to
permissions - a Collection of permissions for this command
name - the name of the command
scope - the CommandScope of this command
guildOnly - whether this command can only be executed in guilds
nsfw - whether this command is nsfw
enabledPermissions - a possibly-empty Set of Permissions this command will be enabled for
localizationFunction - the LocalizationFunction to use for this command
description - the command description
commandOptions - a SequencedCollection of OptionDataDefinitions
cooldown - the corresponding SlashCommandDefinition.CooldownDefinition
isAutoComplete - whether this command supports auto complete
All Implemented Interfaces:
Definition, com.github.kaktushose.jda.commands.definitions.features.internal.Invokable, JDAEntity<CommandData>, CommandDefinition, InteractionDefinition

public record 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) extends Record implements CommandDefinition
Representation of a slash command.