Update User#setEmail/setPassword/setUsername (#991)

* fix some things with user updates and tokens and such

* fix stupid

* Update ClientUser.js

* Update ClientUser.js
This commit is contained in:
Gus Caplan
2016-12-22 14:12:29 -06:00
committed by Schuyler Cebulskie
parent 84954c8860
commit cecb0aee02
3 changed files with 20 additions and 16 deletions

View File

@@ -61,6 +61,7 @@ class User {
for (const prop of ['id', 'username', 'discriminator', 'avatar', 'bot']) {
if (typeof data[prop] !== 'undefined') this[prop] = data[prop];
}
if (data.token) this.client.token = data.token;
}
/**