mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-13 14:12:41 +01:00
✨ system user permissions
This commit is contained in:
parent
7a97bac4bd
commit
6f2d66ce4a
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user