mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Replace usages of owner.id with ownerID, and fix GroupDMChannel.equals
This commit is contained in:
@@ -57,7 +57,7 @@ class GuildChannel extends Channel {
|
||||
permissionsFor(member) {
|
||||
member = this.client.resolver.resolveGuildMember(this.guild, member);
|
||||
if (!member) return null;
|
||||
if (this.guild.owner.id === member.id) return new EvaluatedPermissions(member, Constants.ALL_PERMISSIONS);
|
||||
if (member.id === this.guild.ownerID) return new EvaluatedPermissions(member, Constants.ALL_PERMISSIONS);
|
||||
|
||||
let permissions = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user