Package xyz.dynxsty.dih4jda.events
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 Summary
ConstructorDescriptionCommandCooldownEvent
(DIH4JDA dih4jda, net.dv8tion.jda.api.interactions.commands.CommandInteraction interaction, RestrictedCommand.Cooldown cooldown) Creates a new instance of this event. -
Method Summary
Methods inherited from class xyz.dynxsty.dih4jda.events.DIH4JDAEvent
fire
-
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
- theDIH4JDA
instance that fired this event.interaction
- theCommandInteraction
.cooldown
- theRestrictedCommand.Cooldown
the user has.
-