1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-14 06:32:36 +01:00

system user permissions

This commit is contained in:
Flam3rboy 2021-05-22 16:12:46 +02:00
parent 7a97bac4bd
commit 6f2d66ce4a

View File

@ -149,6 +149,8 @@ export class Permissions extends BitField {
owner_id?: string; 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 roles = guild.roles.filter((x) => user.roles.includes(x.id));
let permission = Permissions.rolePermission(roles); let permission = Permissions.rolePermission(roles);