Class CommandCooldownEvent

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

public class CommandCooldownEvent extends DIH4JDAEvent<net.dv8tion.jda.api.interactions.commands.CommandInteraction>
An event that gets fired when the user, which invoked the command, is not yet able to use this command due to a specified Command Cooldown Command Cooldowns DO NOT persist between sessions!
See Also:
  • Constructor Details

    • CommandCooldownEvent

      public CommandCooldownEvent(@Nonnull DIH4JDA dih4jda, @Nonnull net.dv8tion.jda.api.interactions.commands.CommandInteraction interaction, @Nonnull RestrictedCommand.Cooldown cooldown)
      Creates a new instance of this event.
      Parameters:
      dih4jda - the DIH4JDA instance that fired this event.
      interaction - the CommandInteraction.
      cooldown - the RestrictedCommand.Cooldown the user has.