- Preparing search index...
- The search index is not available
erine
Methods
check
- check(command, id, cooldown, bucket): Promise<null | {
bucket: Bucket;
command: string;
id: string;
left: number;
time: number;
}>
-
Parameters
-
command: string
-
id: string
-
cooldown: number
-
Returns Promise<null | {
bucket: Bucket;
command: string;
id: string;
left: number;
time: number;
}>
getCooldownSource
- getCooldownSource(command, id, bucket): Promise<undefined | number>
-
Parameters
-
command: string
-
id: string
-
Returns Promise<undefined | number>
setCooldownSource
- setCooldownSource(command, id, bucket, time): Promise<void>
-
Parameters
-
command: string
-
id: string
-
-
time: number
Returns Promise<void>