more profile stuff (#1131)

This commit is contained in:
Gus Caplan
2017-01-24 15:53:26 -06:00
committed by Amish Shah
parent c73e501243
commit 4b2053133d

View File

@@ -42,6 +42,12 @@ class UserProfile {
*/
this.premium = data.premium;
/**
* The date since which the user has had Discord Premium
* @type {?Date}
*/
this.premiumSince = data.premium_since ? new Date(data.premium_since) : null;
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));