Package com.reign.kat.lib.command.slash
Class SlashCommandContext
java.lang.Object
com.reign.kat.lib.command.Context
com.reign.kat.lib.command.slash.SlashCommandContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.dv8tion.jda.api.interactions.InteractionHook
Webhook to the interaction, we can use this for deferred replys up to 15 minutes after handling the interaction.final net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction
Information about the executing slash command -
Constructor Summary
ConstructorsConstructorDescriptionSlashCommandContext
(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, Command command, List<String> args) -
Method Summary
-
Field Details
-
interaction
public final net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction interactionInformation about the executing slash command -
hook
public final net.dv8tion.jda.api.interactions.InteractionHook hookWebhook to the interaction, we can use this for deferred replys up to 15 minutes after handling the interaction.
-
-
Constructor Details
-
SlashCommandContext
-
-
Method Details
-
event
public net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event() -
prefix
-
canProvideInteractionHook
public boolean canProvideInteractionHook()- Overrides:
canProvideInteractionHook
in classContext
-
hook
public net.dv8tion.jda.api.interactions.InteractionHook hook() -
send
-
send
public void send(net.dv8tion.jda.api.entities.MessageEmbed... embeds)
-