mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 01:01:30 +00:00
Merge branch 'indev' into indev-prism
This commit is contained in:
commit
e9af3f0a1f
3 changed files with 9 additions and 1 deletions
|
|
@ -35,7 +35,7 @@
|
||||||
"pako": "^1.0.0",
|
"pako": "^1.0.0",
|
||||||
"superagent": "^3.3.0",
|
"superagent": "^3.3.0",
|
||||||
"tweetnacl": "^0.14.0",
|
"tweetnacl": "^0.14.0",
|
||||||
"ws": "^1.1.0"
|
"ws": "^1.1.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"erlpack": "hammerandchisel/erlpack#master",
|
"erlpack": "hammerandchisel/erlpack#master",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ class ReadyHandler extends AbstractHandler {
|
||||||
client.ws.heartbeat();
|
client.ws.heartbeat();
|
||||||
|
|
||||||
const clientUser = new ClientUser(client, data.user);
|
const clientUser = new ClientUser(client, data.user);
|
||||||
|
clientUser.settings = data.user_settings;
|
||||||
client.user = clientUser;
|
client.user = clientUser;
|
||||||
client.readyAt = new Date();
|
client.readyAt = new Date();
|
||||||
client.users.set(clientUser.id, clientUser);
|
client.users.set(clientUser.id, clientUser);
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,13 @@ class ClientUser extends User {
|
||||||
* @type {Collection<string, string>}
|
* @type {Collection<string, string>}
|
||||||
*/
|
*/
|
||||||
this.notes = new Collection();
|
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) {
|
edit(data) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue