Class InsufficientPermissionsEvent

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

public class InsufficientPermissionsEvent extends DIH4JDAEvent<net.dv8tion.jda.api.interactions.commands.CommandInteraction>
An event that gets fired when the user, which invoked the command, does NOT have one of the required permissions.
See Also:
  • Constructor Details

    • InsufficientPermissionsEvent

      public InsufficientPermissionsEvent(@Nonnull DIH4JDA dih4jda, @Nonnull net.dv8tion.jda.api.interactions.commands.CommandInteraction interaction, @Nonnull Set<net.dv8tion.jda.api.Permission> permissions)
      Creates an instance of the InsufficientPermissionsEvent.
      Parameters:
      dih4jda - the DIH4JDA that fired this event.
      interaction - the CommandInteraction.
      permissions - the Permission that was required.