Uses of Record Class
com.github.kaktushose.jda.commands.definitions.description.MethodDescription
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 MethodDescription in com.github.kaktushose.jda.commands.definitions.description
Modifier and TypeMethodDescription@NotNull Collection
<MethodDescription> ClassDescription.methods()
Returns the value of themethods
record component. -
Uses of MethodDescription in com.github.kaktushose.jda.commands.definitions.interactions
Modifier and TypeMethodDescription@NotNull MethodDescription
MethodBuildContext.method()
Returns the value of themethod
record component.@NotNull MethodDescription
AutoCompleteDefinition.methodDescription()
Returns the value of themethodDescription
record component.@NotNull MethodDescription
ModalDefinition.methodDescription()
Returns the value of themethodDescription
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 MethodDescription in com.github.kaktushose.jda.commands.definitions.interactions.command
Modifier and TypeMethodDescription@NotNull MethodDescription
ContextCommandDefinition.methodDescription()
Returns the value of themethodDescription
record component.@NotNull MethodDescription
SlashCommandDefinition.methodDescription()
Returns the value of themethodDescription
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 MethodDescription in com.github.kaktushose.jda.commands.definitions.interactions.component
Modifier and TypeMethodDescription@NotNull MethodDescription
ButtonDefinition.methodDescription()
Returns the value of themethodDescription
record component.@NotNull MethodDescription
ComponentDefinition.methodDescription()
TheMethodDescription
of the method this definition is bound toModifierConstructorDescriptionButtonDefinition
(@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.