Fix bot-maintained slowmodes not being applied
This commit is contained in:
parent
160c31baf7
commit
24e16078ec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue