diff --git a/src/server/Server.ts b/src/server/Server.ts index c4a1dcd..3aa6c7c 100644 --- a/src/server/Server.ts +++ b/src/server/Server.ts @@ -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; } diff --git a/src/util/PermissionManager.ts b/src/util/PermissionManager.ts index 8af05ad..7133e02 100644 --- a/src/util/PermissionManager.ts +++ b/src/util/PermissionManager.ts @@ -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;