Record Class SlashCommandDefinition

java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.definitions.interactions.command.SlashCommandDefinition
Record Components:
classDescription - 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
commandConfig - the CommandDefinition.CommandConfig to use
description - the command description
commandOptions - a SequencedCollection of OptionDataDefinitions
All Implemented Interfaces:
Definition, Invokable, JDAEntity<net.dv8tion.jda.api.interactions.commands.build.CommandData>, CommandDefinition, InteractionDefinition

public record SlashCommandDefinition(ClassDescription classDescription, MethodDescription methodDescription, Collection<String> permissions, String name, CommandDefinition.CommandConfig commandConfig, String description, SequencedCollection<OptionDataDefinition> commandOptions) extends Record implements CommandDefinition
Representation of a slash command.