Class InvalidUserEvent

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

public class InvalidUserEvent extends DIH4JDAEvent<net.dv8tion.jda.api.interactions.commands.CommandInteraction>
An event that gets fired when the user, which invoked the command, is NOT allowed to use this command.
See Also:
  • Constructor Details

    • InvalidUserEvent

      public InvalidUserEvent(@Nonnull DIH4JDA dih4jda, @Nonnull net.dv8tion.jda.api.interactions.commands.CommandInteraction interaction, @Nonnull Set<Long> userIds)
      Creates a new instance of the InvalidUserEvent.
      Parameters:
      dih4jda - the DIH4JDA instance that fired the event.
      interaction - the CommandInteraction.
      userIds - the user ids that was allowed to execute RestrictedCommand.