Annotation Interface Cooldown


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface Cooldown
Commands annotated with Cooldown will have a per-user cooldown.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the TimeUnit of the specified delay.
    long
    Returns the delay of the cooldown.
  • Element Details

    • value

      long value
      Returns the delay of the cooldown.
      Returns:
      the delay of the cooldown
    • timeUnit

      TimeUnit timeUnit
      Returns the TimeUnit of the specified delay.
      Returns:
      the TimeUnit of the specified delay