From bf6181118c3d1ee2c5197d282e3b721051184f3c Mon Sep 17 00:00:00 2001 From: Atridad Lahiji <88056492+atridadl@users.noreply.github.com> Date: Wed, 5 Jul 2023 17:07:29 -0600 Subject: [PATCH] cooldowns now work for realsies --- src/commands/pic.ts | 2 +- src/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/pic.ts b/src/commands/pic.ts index 8c72d45..24270f6 100644 --- a/src/commands/pic.ts +++ b/src/commands/pic.ts @@ -9,7 +9,7 @@ import { AttachmentBuilder, Message } from 'discord.js'; cooldownDelay: 300_000, cooldownLimit: 1, // Yes... I did hardcode myself. - cooldownFilteredUsers: ['himbothyswaggins', 'HimbothySwaggins', 'HimbothySwaggins#4006'], + cooldownFilteredUsers: ['83679718401904640'], cooldownScope: BucketScope.User }) export class UserCommand extends Command { diff --git a/src/index.ts b/src/index.ts index 7a3026d..64879e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,10 +22,10 @@ const client = new SapphireClient({ defaultCooldown: { // 10s delay: 10_000, - filteredCommands: ['himbothyswaggins', 'HimbothySwaggins', 'HimbothySwaggins#4006'], + filteredCommands: ['disclosure', 'support', 'ping', 'wryna'], limit: 2, // Yes... I did hardcode myself. - filteredUsers: ['himbothyswaggins'], + filteredUsers: ['83679718401904640'], scope: BucketScope.User } });