mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
add some missing properties (#978)
* add premium to profile * add other missing stuff
This commit is contained in:
parent
8596eadb25
commit
8139bef4e2
2 changed files with 12 additions and 0 deletions
|
|
@ -114,6 +114,12 @@ class Guild {
|
||||||
*/
|
*/
|
||||||
this.features = data.features;
|
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.
|
* A collection of emojis that are in this guild. The key is the emoji's ID, the value is the emoji.
|
||||||
* @type {Collection<string, Emoji>}
|
* @type {Collection<string, Emoji>}
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,12 @@ class UserProfile {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup(data) {
|
setup(data) {
|
||||||
|
/**
|
||||||
|
* If the user has Discord Premium
|
||||||
|
* @type {Boolean}
|
||||||
|
*/
|
||||||
|
this.premium = data.premium;
|
||||||
|
|
||||||
for (const guild of data.mutual_guilds) {
|
for (const guild of data.mutual_guilds) {
|
||||||
if (this.client.guilds.has(guild.id)) {
|
if (this.client.guilds.has(guild.id)) {
|
||||||
this.mutualGuilds.set(guild.id, this.client.guilds.get(guild.id));
|
this.mutualGuilds.set(guild.id, this.client.guilds.get(guild.id));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue