3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

Fix bot-maintained slowmodes not being applied

This commit is contained in:
Miikka 2019-04-15 14:11:58 +03:00 committed by GitHub
parent 2fda98db44
commit 91a713b3aa

View file

@ -288,7 +288,7 @@ export class SlowmodePlugin extends ZeppelinPlugin<ISlowmodePluginConfig> {
// Make sure this user is affected by the slowmode // Make sure this user is affected by the slowmode
const member = this.guild.members.get(msg.user_id); 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(); if (!isAffected) return thisMsgLock.unlock();
// Check if this channel even *has* a bot-maintained slowmode // Check if this channel even *has* a bot-maintained slowmode