Skip to content

Commit

Permalink
Merge pull request #375 from Blocksnmore/fix-owner-perms
Browse files Browse the repository at this point in the history
Fix: Server Owner perms are reported wrong
  • Loading branch information
Helloyunho authored Dec 15, 2023
2 parents b5b573f + ce4227e commit 07d04ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/structures/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export class Member extends SnowflakeBase {
this.user = user
this.guild = guild
this.roles = new MemberRolesManager(this.client, this.guild.roles, this)
this.permissions = perms ?? new Permissions(Permissions.DEFAULT)
this.permissions =
this.guild.ownerID === this.id
? new Permissions(Permissions.ALL)
: perms ?? new Permissions(Permissions.DEFAULT)
this.roles
.array()
.then((roles) => {
Expand Down

0 comments on commit 07d04ea

Please sign in to comment.