Class SlashCommandContext

java.lang.Object
com.reign.kat.lib.command.Context
com.reign.kat.lib.command.slash.SlashCommandContext

public class SlashCommandContext extends Context
  • Field Details

    • interaction

      public final net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction interaction
      Information about the executing slash command
    • hook

      public final net.dv8tion.jda.api.interactions.InteractionHook hook
      Webhook to the interaction, we can use this for deferred replys up to 15 minutes after handling the interaction.
  • Constructor Details

    • SlashCommandContext

      public SlashCommandContext(net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event, Command command, List<String> args)
  • Method Details

    • event

      public net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent event()
      Specified by:
      event in class Context
    • prefix

      public String prefix()
      Specified by:
      prefix in class Context
    • canProvideInteractionHook

      public boolean canProvideInteractionHook()
      Overrides:
      canProvideInteractionHook in class Context
    • hook

      public net.dv8tion.jda.api.interactions.InteractionHook hook()
      Overrides:
      hook in class Context
    • send

      public void send(String... msgs)
      Specified by:
      send in class Context
    • send

      public void send(net.dv8tion.jda.api.entities.MessageEmbed... embeds)
      Specified by:
      send in class Context