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:
parent
d6ffa06e2c
commit
ef9afee8b4
6 changed files with 19 additions and 19 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue