@Target(value=TYPE)
@Retention(value=RUNTIME)
public static @interface JDACommand.Cooldown
Command#cooldown
and Command#cooldownScope
.
The default CooldownScope
is CooldownScope.USER
.JDACommand.cooldown()
Modifier and Type | Required Element and Description |
---|---|
int |
value
The number of seconds the annotated Command will be on cooldown.
|
Modifier and Type | Optional Element and Description |
---|---|
Command.CooldownScope |
scope
The
CooldownScope
for the annotated Command. |
public abstract int value
public abstract Command.CooldownScope scope
CooldownScope
for the annotated Command.
By default this is CooldownScope.USER
.