Class RestrictedCommand.Cooldown

java.lang.Object
xyz.dynxsty.dih4jda.interactions.commands.RestrictedCommand.Cooldown
Enclosing class:
RestrictedCommand

public static class RestrictedCommand.Cooldown extends Object
Model class which represents a single command cooldown.

Command Cooldowns DO NOT persist between sessions!

  • Method Details

    • getNextUse

      public Instant getNextUse()
      Returns:
      The next time the command may be used again.
    • getLastUse

      public Instant getLastUse()
      Returns:
      The last time the command was used.