diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-07-28 16:20:27 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-07-28 16:20:27 -0400 |
| commit | d35e0862e6b60fe3c4f823371627359f3ce3e68b (patch) | |
| tree | d98b788eb1abf0a8814207b993b4e22efe711deb /node_modules/discord.js/src/structures/UserProfile.js | |
| parent | 20993df62e7e38ed43428aafa5981afc3543bdea (diff) | |
| download | AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.tar.gz AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.tar.bz2 AleeBot-d35e0862e6b60fe3c4f823371627359f3ce3e68b.zip | |
Removing node modules (go get them yourself :P)
Diffstat (limited to 'node_modules/discord.js/src/structures/UserProfile.js')
| -rw-r--r-- | node_modules/discord.js/src/structures/UserProfile.js | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/node_modules/discord.js/src/structures/UserProfile.js b/node_modules/discord.js/src/structures/UserProfile.js deleted file mode 100644 index 77f097c..0000000 --- a/node_modules/discord.js/src/structures/UserProfile.js +++ /dev/null @@ -1,56 +0,0 @@ -const Collection = require('../util/Collection'); -const UserConnection = require('./UserConnection'); - -/** - * Represents a user's profile on Discord. - */ -class UserProfile { - constructor(user, data) { - /** - * The owner of the profile - * @type {User} - */ - this.user = user; - - /** - * The Client that created the instance of the the UserProfile. - * @name UserProfile#client - * @type {Client} - * @readonly - */ - Object.defineProperty(this, 'client', { value: user.client }); - - /** - * Guilds that the client user and the user share - * @type {Collection<Guild>} - */ - this.mutualGuilds = new Collection(); - - /** - * The user's connections - * @type {Collection<UserConnection>} - */ - this.connections = new Collection(); - - this.setup(data); - } - - 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)); - } - } - for (const connection of data.connected_accounts) { - this.connections.set(connection.id, new UserConnection(this.user, connection)); - } - } -} - -module.exports = UserProfile; |
