mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
add some missing properties (#978)
* add premium to profile * add other missing stuff
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user