aboutsummaryrefslogtreecommitdiff
path: root/node_modules/discord.js/src/structures/OAuth2Application.js
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2017-07-28 16:20:27 -0400
committerAlee14 <Alee14498@gmail.com>2017-07-28 16:20:27 -0400
commitd35e0862e6b60fe3c4f823371627359f3ce3e68b (patch)
treed98b788eb1abf0a8814207b993b4e22efe711deb /node_modules/discord.js/src/structures/OAuth2Application.js
parent20993df62e7e38ed43428aafa5981afc3543bdea (diff)
downloadAleeBot-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/OAuth2Application.js')
-rw-r--r--node_modules/discord.js/src/structures/OAuth2Application.js82
1 files changed, 0 insertions, 82 deletions
diff --git a/node_modules/discord.js/src/structures/OAuth2Application.js b/node_modules/discord.js/src/structures/OAuth2Application.js
deleted file mode 100644
index b7c7285..0000000
--- a/node_modules/discord.js/src/structures/OAuth2Application.js
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * Represents an OAuth2 Application
- */
-class OAuth2Application {
- constructor(client, data) {
- /**
- * The client that instantiated the application
- * @name OAuth2Application#client
- * @type {Client}
- * @readonly
- */
- Object.defineProperty(this, 'client', { value: client });
-
- this.setup(data);
- }
-
- setup(data) {
- /**
- * The ID of the app
- * @type {string}
- */
- this.id = data.id;
-
- /**
- * The name of the app
- * @type {string}
- */
- this.name = data.name;
-
- /**
- * The app's description
- * @type {string}
- */
- this.description = data.description;
-
- /**
- * The app's icon hash
- * @type {string}
- */
- this.icon = data.icon;
-
- /**
- * The app's icon URL
- * @type {string}
- */
- this.iconURL = `https://cdn.discordapp.com/app-icons/${this.id}/${this.icon}.jpg`;
-
- /**
- * The app's RPC origins
- * @type {Array<string>}
- */
- this.rpcOrigins = data.rpc_origins;
- }
-
- /**
- * The timestamp the app was created at
- * @type {number}
- * @readonly
- */
- get createdTimestamp() {
- return (this.id / 4194304) + 1420070400000;
- }
-
- /**
- * The time the app was created
- * @type {Date}
- * @readonly
- */
- get createdAt() {
- return new Date(this.createdTimestamp);
- }
-
- /**
- * When concatenated with a string, this automatically concatenates the app name rather than the app object.
- * @returns {string}
- */
- toString() {
- return this.name;
- }
-}
-
-module.exports = OAuth2Application;