From 8139bef4e23a18864ef4b36ca6784e607dde38eb Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Wed, 14 Dec 2016 11:23:22 -0600 Subject: [PATCH] add some missing properties (#978) * add premium to profile * add other missing stuff --- src/structures/Guild.js | 6 ++++++ src/structures/UserProfile.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 576097e53..f4fabc809 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -114,6 +114,12 @@ class Guild { */ this.features = data.features; + /** + * The ID of the application that created this guild (if applicable) + * @type {?string} + */ + this.applicationId = data.application_id; + /** * A collection of emojis that are in this guild. The key is the emoji's ID, the value is the emoji. * @type {Collection} diff --git a/src/structures/UserProfile.js b/src/structures/UserProfile.js index 69f05c7ae..734a9913e 100644 --- a/src/structures/UserProfile.js +++ b/src/structures/UserProfile.js @@ -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));