Class InvalidGuildEvent

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

public class InvalidGuildEvent extends DIH4JDAEvent<net.dv8tion.jda.api.interactions.commands.CommandInteraction>
An event that gets fired when the command is NOT executed in one of the required guild.
See Also:
  • Constructor Details

    • InvalidGuildEvent

      public InvalidGuildEvent(@Nonnull DIH4JDA dih4jda, @Nonnull net.dv8tion.jda.api.interactions.commands.CommandInteraction interaction, @Nonnull Set<Long> guildIds)
      Creates a new instance InvalidGuildEvent.
      Parameters:
      dih4jda - the DIH4JDA instance that fired this event.
      interaction - the CommandInteraction.
      guildIds - the guild ids that the RestrictedCommand could be executed on.