Package tech.xigam.cch.command
Record Class Alias
java.lang.Object
java.lang.Record
tech.xigam.cch.command.Alias
- All Implemented Interfaces:
BaseCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliasOf()Returns the value of thealiasOfrecord component.final booleanIndicates whether some other object is "equal to" this one.voidexecute(Interaction interaction) getLabel()final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.voidprepareForCallback(String cmdLabel, net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event, ComplexCommandHandler handler) voidprepareForCallback(String cmdLabel, net.dv8tion.jda.api.events.interaction.component.SelectMenuInteractionEvent event, ComplexCommandHandler handler) voidprepareForCompletion(net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent event, ComplexCommandHandler handler) voidprepareForExecution(List<String> arguments, net.dv8tion.jda.api.entities.Message message, net.dv8tion.jda.api.entities.Member sender, net.dv8tion.jda.api.entities.MessageChannel channel, boolean skipArguments, ComplexCommandHandler handler) voidprepareForExecution(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, ComplexCommandHandler handler) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tech.xigam.cch.command.BaseCommand
createButton, createButton, createButton, createSelectMenu, createSelectMenu
-
Constructor Details
-
Alias
Creates an instance of aAliasrecord class.- Parameters:
label- the value for thelabelrecord componentaliasOf- the value for thealiasOfrecord component
-
-
Method Details
-
getLabel
- Specified by:
getLabelin interfaceBaseCommand
-
getDescription
- Specified by:
getDescriptionin interfaceBaseCommand
-
execute
- Specified by:
executein interfaceBaseCommand
-
prepareForExecution
public void prepareForExecution(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, ComplexCommandHandler handler) - Specified by:
prepareForExecutionin interfaceBaseCommand
-
prepareForExecution
public void prepareForExecution(List<String> arguments, net.dv8tion.jda.api.entities.Message message, net.dv8tion.jda.api.entities.Member sender, net.dv8tion.jda.api.entities.MessageChannel channel, boolean skipArguments, ComplexCommandHandler handler) - Specified by:
prepareForExecutionin interfaceBaseCommand
-
prepareForCompletion
public void prepareForCompletion(net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent event, ComplexCommandHandler handler) - Specified by:
prepareForCompletionin interfaceBaseCommand
-
prepareForCallback
public void prepareForCallback(String cmdLabel, net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event, ComplexCommandHandler handler) - Specified by:
prepareForCallbackin interfaceBaseCommand
-
prepareForCallback
public void prepareForCallback(String cmdLabel, net.dv8tion.jda.api.events.interaction.component.SelectMenuInteractionEvent event, ComplexCommandHandler handler) - Specified by:
prepareForCallbackin interfaceBaseCommand
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
aliasOf
Returns the value of thealiasOfrecord component.- Returns:
- the value of the
aliasOfrecord component
-