From 4b2053133de837677bd00b58cf0bc1d15f826abb Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Tue, 24 Jan 2017 15:53:26 -0600 Subject: [PATCH] more profile stuff (#1131) --- src/structures/UserProfile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/structures/UserProfile.js b/src/structures/UserProfile.js index 77f097ca9..66a6c1616 100644 --- a/src/structures/UserProfile.js +++ b/src/structures/UserProfile.js @@ -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));