Skip to content

Commit

Permalink
Server Owner has all permissions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Blocksnmore committed Dec 3, 2023
1 parent e3e3c73 commit ce4227e
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 ce4227e

Please sign in to comment.