Uses of Record Class
com.github.kaktushose.jda.commands.definitions.description.ClassDescription
Package
Description
This packages includes different types of
Descriptions
that contain meta information about classes, methods und parameters, similar to reflections.Definitions
that represent any type interaction.Definitions
that represent a command interaction.Definitions
that represent component interactions.Definitions
that represent select menu interactions.-
Uses of ClassDescription in com.github.kaktushose.jda.commands.definitions.description
Modifier and TypeInterfaceDescriptioninterface
-
Uses of ClassDescription in com.github.kaktushose.jda.commands.definitions.description.reflective
Modifier and TypeMethodDescription@NotNull ClassDescription
Transforms the givenClass
into aClassDescription
. -
Uses of ClassDescription in com.github.kaktushose.jda.commands.definitions.interactions
Modifier and TypeMethodDescription@NotNull ClassDescription
MethodBuildContext.clazz()
Returns the value of theclazz
record component.@NotNull ClassDescription
AutoCompleteDefinition.clazzDescription()
Returns the value of theclazzDescription
record component.@NotNull ClassDescription
ModalDefinition.clazzDescription()
Returns the value of theclazzDescription
record component.Modifier and TypeMethodDescriptionstatic @NotNull Optional
<AutoCompleteDefinition> AutoCompleteDefinition.build
(@NotNull ClassDescription clazz, @NotNull MethodDescription method) Builds a newAutoCompleteDefinition
from the given class and method description.ModifierConstructorDescriptionAutoCompleteDefinition
(@NotNull ClassDescription clazzDescription, @NotNull MethodDescription methodDescription, @NotNull Set<String> commands) Creates an instance of aAutoCompleteDefinition
record class.MethodBuildContext
(@NotNull com.github.kaktushose.jda.commands.dispatching.validation.internal.Validators validators, @NotNull LocalizationFunction localizationFunction, @NotNull Interaction interaction, @NotNull Set<String> permissions, @Nullable SlashCommandDefinition.CooldownDefinition cooldownDefinition, @NotNull ClassDescription clazz, @NotNull MethodDescription method, @NotNull Collection<AutoCompleteDefinition> autoCompleteDefinitions) Creates an instance of aMethodBuildContext
record class.ModalDefinition
(@NotNull ClassDescription clazzDescription, @NotNull MethodDescription methodDescription, @NotNull Collection<String> permissions, @NotNull String title, @NotNull SequencedCollection<ModalDefinition.TextInputDefinition> textInputs) Creates an instance of aModalDefinition
record class. -
Uses of ClassDescription in com.github.kaktushose.jda.commands.definitions.interactions.command
Modifier and TypeMethodDescription@NotNull ClassDescription
ContextCommandDefinition.clazzDescription()
Returns the value of theclazzDescription
record component.@NotNull ClassDescription
SlashCommandDefinition.clazzDescription()
Returns the value of theclazzDescription
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. -
Uses of ClassDescription in com.github.kaktushose.jda.commands.definitions.interactions.component
Modifier and TypeMethodDescription@NotNull ClassDescription
ButtonDefinition.clazzDescription()
Returns the value of theclazzDescription
record component.@NotNull ClassDescription
ComponentDefinition.clazzDescription()
TheClassDescription
of the declaring class of theComponentDefinition.methodDescription()
ModifierConstructorDescriptionButtonDefinition
(@NotNull ClassDescription clazzDescription, @NotNull MethodDescription methodDescription, @NotNull Collection<String> permissions, @NotNull String label, @Nullable Emoji emoji, @Nullable String link, @NotNull ButtonStyle style) Creates an instance of aButtonDefinition
record class.