add some missing properties (#978)

* add premium to profile

* add other missing stuff
This commit is contained in:
Gus Caplan
2016-12-14 11:23:22 -06:00
committed by Amish Shah
parent 8596eadb25
commit 8139bef4e2
2 changed files with 12 additions and 0 deletions

View File

@@ -36,6 +36,12 @@ class UserProfile {
}
setup(data) {
/**
* If the user has Discord Premium
* @type {Boolean}
*/
this.premium = data.premium;
for (const guild of data.mutual_guilds) {
if (this.client.guilds.has(guild.id)) {
this.mutualGuilds.set(guild.id, this.client.guilds.get(guild.id));