Record Class ContextCommandDefinition

java.lang.Object
java.lang.Record
com.github.kaktushose.jda.commands.definitions.interactions.command.ContextCommandDefinition
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
commandType - the Command.Type of this 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
All Implemented Interfaces:
Definition, com.github.kaktushose.jda.commands.definitions.features.internal.Invokable, JDAEntity<CommandData>, CommandDefinition, InteractionDefinition

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