Class RestrictedCommand.Cooldown
java.lang.Object
xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand.Cooldown
- Enclosing class:
RestrictedCommand
Model class which represents a single command cooldown.
Command Cooldowns DO NOT persist between sessions!
-
Method Summary
Modifier and TypeMethodDescriptionGets you theInstant
the user has used theRestrictedCommand
the last time.Gets you theInstant
of when a user can use theRestrictedCommand
the next time.
-
Method Details
-
getNextUse
Gets you theInstant
of when a user can use theRestrictedCommand
the next time.- Returns:
- The next
time
the command may be used again.
-
getLastUse
Gets you theInstant
the user has used theRestrictedCommand
the last time.- Returns:
- The last
time
the command was used.
-