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

Fix member fetching in a few places

This commit is contained in:
Dragory 2019-05-02 08:21:11 +03:00
parent d6ffa06e2c
commit ef9afee8b4
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();