refactor: Move me and add fetchMe() (#9029)

This commit is contained in:
Jiralite
2023-01-10 09:49:43 +00:00
committed by GitHub
parent f0d42644df
commit b01c81dd72
14 changed files with 78 additions and 32 deletions

View File

@@ -632,7 +632,7 @@ class Message extends Base {
return Boolean(
this.author.id === this.client.user.id ||
(permissions.has(Permissions.FLAGS.MANAGE_MESSAGES, false) &&
this.guild.me.communicationDisabledUntilTimestamp < Date.now()),
this.guild.members.me.communicationDisabledUntilTimestamp < Date.now()),
);
}