Class CommandExceptionEvent

java.lang.Object
xyz.dynxsty.dih4jda.events.DIH4JDAEvent<net.dv8tion.jda.api.interactions.commands.CommandInteraction>
xyz.dynxsty.dih4jda.events.DIH4JDAThrowableEvent<net.dv8tion.jda.api.interactions.commands.CommandInteraction>
xyz.dynxsty.dih4jda.events.CommandExceptionEvent

public class CommandExceptionEvent extends DIH4JDAThrowableEvent<net.dv8tion.jda.api.interactions.commands.CommandInteraction>
An event that gets fired when an exception gets raised while executing any command.
See Also:
  • Constructor Details

    • CommandExceptionEvent

      public CommandExceptionEvent(@Nonnull DIH4JDA dih4jda, @Nonnull net.dv8tion.jda.api.interactions.commands.CommandInteraction interaction, @Nonnull Throwable throwable)
      Creates a new instance of this event.
      Parameters:
      dih4jda - the DIH4JDA instance that fired this event.
      interaction - the CommandInteraction.
      throwable - the Throwable that was thrown.