add ClientUser.settings (#1041)

* add user settings

* Update Ready.js
This commit is contained in:
Gus Caplan
2016-12-29 12:58:39 -06:00
committed by Amish Shah
parent ebd2f0e73f
commit 22b1c425ac
2 changed files with 8 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ class ReadyHandler extends AbstractHandler {
client.ws.heartbeat();
const clientUser = new ClientUser(client, data.user);
clientUser.settings = data.user_settings;
client.user = clientUser;
client.readyAt = new Date();
client.users.set(clientUser.id, clientUser);

View File

@@ -43,6 +43,13 @@ class ClientUser extends User {
* @type {Collection<string, string>}
*/
this.notes = new Collection();
/**
* Discord client settings, such as guild positions
* <warn>This is only filled when using a user account.</warn>
* @type {Object}
*/
this.settings = {};
}
edit(data) {