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 theInstantthe user has used theRestrictedCommandthe last time.Gets you theInstantof when a user can use theRestrictedCommandthe next time.
-
Method Details
-
getNextUse
Gets you theInstantof when a user can use theRestrictedCommandthe next time.- Returns:
- The next
timethe command may be used again.
-
getLastUse
Gets you theInstantthe user has used theRestrictedCommandthe last time.- Returns:
- The last
timethe command was used.
-