updated getters

This commit is contained in:
Erik 2023-05-08 00:57:24 +03:00
parent 59fb43feda
commit 91fe66b202
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68
2 changed files with 12 additions and 1 deletions

View File

@ -371,6 +371,18 @@ class Server extends EventEmitter {
return this.#_port;
}
get mongodb () {
return this.#_mongodb;
}
get memoryStoreProvider () {
return this.#_memoryStoreProvider;
}
get mariadb () {
return this.#_mariadb;
}
get users () {
return this.#_userDatabase;
}

View File

@ -61,7 +61,6 @@ class PermissionManager {
const resolveables = perm.split(':');
let selector = null;
if (typeof perms.developer === 'number' && perms.developer > 0
|| typeof perms.developer === 'object' && typeof perms.developer.default === 'number' && perms.developer?.default > 0)
return true;