mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
more profile stuff (#1131)
This commit is contained in:
parent
c73e501243
commit
4b2053133d
1 changed files with 6 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue