default perms
This commit is contained in:
parent
8e5a1d71d1
commit
404923a5ee
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user