Package tech.xigam.cch.utils
Class Interaction
java.lang.Object
tech.xigam.cch.utils.Interaction
-
Constructor Summary
ConstructorsConstructorDescriptionInteraction(ComplexCommandHandler commandHandler, net.dv8tion.jda.api.entities.Message message, net.dv8tion.jda.api.entities.MessageChannel channel, List<String> arguments, BaseCommand command) Interaction(ComplexCommandHandler commandHandler, net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, BaseCommand command) -
Method Summary
Modifier and TypeMethodDescriptionaddButtons(net.dv8tion.jda.api.interactions.components.buttons.Button... buttons) addSelectMenu(net.dv8tion.jda.api.interactions.components.selections.SelectMenu menu) voidvoidexecute(Consumer<Interaction> consumer, long after, TimeUnit timeUnit) <T> TgetArgument(String reference, Class<T> type) <T> TgetArgument(String reference, T fallback, Class<T> type) Deprecated.Deprecated.net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEventbooleanbooleanbooleanbooleanisSlash()voidvoidvoidreply(net.dv8tion.jda.api.entities.MessageEmbed embed) voidreply(net.dv8tion.jda.api.entities.MessageEmbed message, boolean mentionUser) sendMessage(String message) sendMessage(net.dv8tion.jda.api.entities.MessageEmbed message) setEphemeral(boolean sendToDMs)
-
Constructor Details
-
Interaction
public Interaction(ComplexCommandHandler commandHandler, net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, BaseCommand command) -
Interaction
public Interaction(ComplexCommandHandler commandHandler, net.dv8tion.jda.api.entities.Message message, net.dv8tion.jda.api.entities.MessageChannel channel, List<String> arguments, BaseCommand command)
-
-
Method Details
-
getCommandHandler
-
getArguments
Deprecated. -
getRawArguments
Deprecated. -
getArgument
-
getArgument
-
getSlashExecutor
@Nullable public net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent getSlashExecutor() -
isSlash
public boolean isSlash() -
isDeferred
public boolean isDeferred() -
isEphemeral
public boolean isEphemeral() -
isFromGuild
public boolean isFromGuild() -
deferReply
public void deferReply() -
setEphemeral
-
setEphemeral
-
addButtons
public Interaction addButtons(net.dv8tion.jda.api.interactions.components.buttons.Button... buttons) -
addSelectMenu
public Interaction addSelectMenu(net.dv8tion.jda.api.interactions.components.selections.SelectMenu menu) -
sendMessage
-
sendMessage
-
reply
-
reply
public void reply(net.dv8tion.jda.api.entities.MessageEmbed embed) -
reply
-
reply
public void reply(net.dv8tion.jda.api.entities.MessageEmbed message, boolean mentionUser) -
execute
-