default perms

This commit is contained in:
Erik 2022-03-25 18:21:57 +02:00
parent 8e5a1d71d1
commit 404923a5ee
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589

View File

@ -31,8 +31,8 @@ class Users extends EventEmitter {
this.emit('debug', `Result for ${id}: ${JSON.stringify(userPartial)}`);
if (userPartial) return user;
user.permissions = {};
await this.database.updateOne(this.collection, { id }, { id, tag: user.tag, permissions: {} }, true);
user.permissions = this.defaultPermissions;
await this.database.updateOne(this.collection, { id }, { id, tag: user.tag, permissions: this.defaultPermissions }, true);
this.emit('userCreate', user);
return user;