diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-05-22 16:12:46 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-05-22 16:12:46 +0200 |
commit | 6f2d66ce4acba669fc1bc62655941fd0f05a947c (patch) | |
tree | f238cb807c698d0fa31996604ccfde4999eb90dd /src/util | |
parent | :sparkles: Message reaction user_ids (diff) | |
download | server-6f2d66ce4acba669fc1bc62655941fd0f05a947c.tar.xz |
:sparkles: system user permissions
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Permissions.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/Permissions.ts b/src/util/Permissions.ts index d358851c..b2af93e0 100644 --- a/src/util/Permissions.ts +++ b/src/util/Permissions.ts @@ -149,6 +149,8 @@ export class Permissions extends BitField { owner_id?: string; }; }) { + if (user.id === "0") return new Permissions("ADMINISTRATOR"); // system user id + let roles = guild.roles.filter((x) => user.roles.includes(x.id)); let permission = Permissions.rolePermission(roles); |