Annotation Interface JDACommand.Cooldown

Enclosing class:
JDACommand

@Target(TYPE) @Retention(RUNTIME) public static @interface JDACommand.Cooldown
A value wrapper for what would be Command#cooldown and Command#cooldownScope. The default CooldownScope is CooldownScope.USER.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The number of seconds the annotated Command will be on cooldown.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The CooldownScope for the annotated Command.
  • Element Details

    • value

      int value
      The number of seconds the annotated Command will be on cooldown.
      Returns:
      The number of seconds the annotated Command will be on cooldown.
    • scope

      The CooldownScope for the annotated Command.

      By default this is CooldownScope.USER.

      Returns:
      The CooldownScope for this annotated Command.
      Default:
      USER