From 24e16078ec16a9d49d343bdfb9833d0ea084abeb Mon Sep 17 00:00:00 2001 From: Miikka Date: Mon, 15 Apr 2019 14:11:58 +0300 Subject: [PATCH] Fix bot-maintained slowmodes not being applied --- src/plugins/Slowmode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/Slowmode.ts b/src/plugins/Slowmode.ts index 196e6944..0810e765 100644 --- a/src/plugins/Slowmode.ts +++ b/src/plugins/Slowmode.ts @@ -288,7 +288,7 @@ export class SlowmodePlugin extends ZeppelinPlugin { // Make sure this user is affected by the slowmode const member = this.guild.members.get(msg.user_id); - const isAffected = this.hasPermission("affected", { channelId: channel.id, userId: msg.user_id, member }); + const isAffected = this.hasPermission("is_affected", { channelId: channel.id, userId: msg.user_id, member }); if (!isAffected) return thisMsgLock.unlock(); // Check if this channel even *has* a bot-maintained slowmode