From ce4227e9b7ce3b77e92108046dcde45422ae9f5c Mon Sep 17 00:00:00 2001 From: Blocks <51055767+Blocksnmore@users.noreply.github.com> Date: Sun, 3 Dec 2023 15:44:36 -0600 Subject: [PATCH] Server Owner has all permissions by default --- src/structures/member.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/structures/member.ts b/src/structures/member.ts index a79411e7..c7c03dc3 100644 --- a/src/structures/member.ts +++ b/src/structures/member.ts @@ -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) => {