Fix member fetching in a few places

This commit is contained in:
Dragory 2019-05-02 08:21:11 +03:00
parent 78790627ad
commit 1e2b68119c
6 changed files with 19 additions and 19 deletions

View file

@ -297,7 +297,7 @@ export class SlowmodePlugin extends ZeppelinPlugin<ISlowmodePluginConfig> {
if (thisMsgLock.interrupted) return;
// Make sure this user is affected by the slowmode
const member = this.guild.members.get(msg.user_id);
const member = await this.getMember(msg.user_id);
const isAffected = this.hasPermission("is_affected", { channelId: channel.id, userId: msg.user_id, member });
if (!isAffected) return thisMsgLock.unlock();