Add cooldown to !jumbo
Since the command uses extra server resources for resizing the image, I want to limit its use a bit. Might look into a per-channel or per-guild cooldown in the future rather than per-user, but this will work for now.
This commit is contained in:
parent
6d6bc735e9
commit
d1764d5f87
1 changed files with 1 additions and 0 deletions
|
@ -1489,6 +1489,7 @@ export class UtilityPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
},
|
||||
})
|
||||
@d.permission("can_jumbo")
|
||||
@d.cooldown(5 * SECONDS)
|
||||
async jumboCmd(msg: Message, args: { emoji: string }) {
|
||||
// Get emoji url
|
||||
const config = this.getConfig();
|
||||
|
|
Loading…
Add table
Reference in a new issue