Webpack build for branch 11.5-dev: 88b675d38a

This commit is contained in:
Travis CI 2020-01-24 15:54:14 +00:00
parent 2712d98a2c
commit d5c60bc871
2 changed files with 4 additions and 4 deletions

View file

@ -1710,7 +1710,7 @@ eval("const Collection = __webpack_require__(/*! ../util/Collection */ \"./src/u
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {
eval("const Collection = __webpack_require__(/*! ../util/Collection */ \"./src/util/Collection.js\");\nconst Emoji = __webpack_require__(/*! ./Emoji */ \"./src/structures/Emoji.js\");\nconst ReactionEmoji = __webpack_require__(/*! ./ReactionEmoji */ \"./src/structures/ReactionEmoji.js\");\n\n/**\n * Represents a reaction to a message.\n */\nclass MessageReaction {\n constructor(message, emoji, count, me) {\n /**\n * The message that this reaction refers to\n * @type {Message}\n */\n this.message = message;\n\n /**\n * Whether the client has given this reaction\n * @type {boolean}\n */\n this.me = me;\n\n /**\n * The number of people that have given the same reaction\n * @type {number}\n */\n this.count = count || 0;\n\n /**\n * The users that have given this reaction, mapped by their ID\n * @type {Collection<Snowflake, User>}\n */\n this.users = new Collection();\n\n this._emoji = new ReactionEmoji(this, emoji.name, emoji.id);\n }\n\n /**\n * The emoji of this reaction, either an Emoji object for known custom emojis, or a ReactionEmoji\n * object which has fewer properties. Whatever the prototype of the emoji, it will still have\n * `name`, `id`, `identifier` and `toString()`\n * @type {Emoji|ReactionEmoji}\n * @readonly\n */\n get emoji() {\n if (this._emoji instanceof Emoji) return this._emoji;\n // Check to see if the emoji has become known to the client\n if (this._emoji.id) {\n const emojis = this.message.client.emojis;\n if (emojis.has(this._emoji.id)) {\n const emoji = emojis.get(this._emoji.id);\n this._emoji = emoji;\n return emoji;\n }\n }\n return this._emoji;\n }\n\n /**\n * Removes a user from this reaction.\n * @param {UserResolvable} [user=this.message.client.user] The user to remove the reaction of\n * @returns {Promise<MessageReaction>}\n */\n remove(user = this.message.client.user) {\n const message = this.message;\n const userID = this.message.client.resolver.resolveUserID(user);\n if (!userID) return Promise.reject(new Error('Couldn\\'t resolve the user ID to remove from the reaction.'));\n return message.client.rest.methods.removeMessageReaction(\n message, this.emoji.identifier, userID\n );\n }\n\n /**\n * Fetch all the users that gave this reaction. Resolves with a collection of users, mapped by their IDs.\n * @param {number} [limit=100] The maximum amount of users to fetch, defaults to 100\n * @param {Object} [options] Options to fetch users\n * @param {Snowflake} [options.before] Limit fetching users to those with an id lower than the supplied id\n * @param {Snowflake} [options.after] Limit fetching users to those with an id greater than the supplied id\n * @returns {Promise<Collection<Snowflake, User>>}\n */\n fetchUsers(limit = 100, { after, before } = {}) {\n const message = this.message;\n return message.client.rest.methods.getMessageReactionUsers(\n message, this.emoji.identifier, { after, before, limit }\n ).then(data => {\n const users = new Collection();\n for (const rawUser of data) {\n const user = this.message.client.dataManager.newUser(rawUser);\n this.users.set(user.id, user);\n users.set(user.id, user);\n }\n return users;\n });\n }\n}\n\nmodule.exports = MessageReaction;\n\n\n//# sourceURL=webpack:///./src/structures/MessageReaction.js?");
eval("const Collection = __webpack_require__(/*! ../util/Collection */ \"./src/util/Collection.js\");\nconst Emoji = __webpack_require__(/*! ./Emoji */ \"./src/structures/Emoji.js\");\nconst ReactionEmoji = __webpack_require__(/*! ./ReactionEmoji */ \"./src/structures/ReactionEmoji.js\");\n\n/**\n * Represents a reaction to a message.\n */\nclass MessageReaction {\n constructor(message, emoji, count, me) {\n /**\n * The message that this reaction refers to\n * @type {Message}\n */\n this.message = message;\n\n /**\n * Whether the client has given this reaction\n * @type {boolean}\n */\n this.me = me;\n\n /**\n * The number of people that have given the same reaction\n * @type {number}\n */\n this.count = count || 0;\n\n /**\n * The users that have given this reaction, mapped by their ID\n * @type {Collection<Snowflake, User>}\n */\n this.users = new Collection();\n\n this._emoji = new ReactionEmoji(this, emoji);\n }\n\n /**\n * The emoji of this reaction, either an Emoji object for known custom emojis, or a ReactionEmoji\n * object which has fewer properties. Whatever the prototype of the emoji, it will still have\n * `name`, `id`, `identifier` and `toString()`\n * @type {Emoji|ReactionEmoji}\n * @readonly\n */\n get emoji() {\n if (this._emoji instanceof Emoji) return this._emoji;\n // Check to see if the emoji has become known to the client\n if (this._emoji.id) {\n const emojis = this.message.client.emojis;\n if (emojis.has(this._emoji.id)) {\n const emoji = emojis.get(this._emoji.id);\n this._emoji = emoji;\n return emoji;\n }\n }\n return this._emoji;\n }\n\n /**\n * Removes a user from this reaction.\n * @param {UserResolvable} [user=this.message.client.user] The user to remove the reaction of\n * @returns {Promise<MessageReaction>}\n */\n remove(user = this.message.client.user) {\n const message = this.message;\n const userID = this.message.client.resolver.resolveUserID(user);\n if (!userID) return Promise.reject(new Error('Couldn\\'t resolve the user ID to remove from the reaction.'));\n return message.client.rest.methods.removeMessageReaction(\n message, this.emoji.identifier, userID\n );\n }\n\n /**\n * Fetch all the users that gave this reaction. Resolves with a collection of users, mapped by their IDs.\n * @param {number} [limit=100] The maximum amount of users to fetch, defaults to 100\n * @param {Object} [options] Options to fetch users\n * @param {Snowflake} [options.before] Limit fetching users to those with an id lower than the supplied id\n * @param {Snowflake} [options.after] Limit fetching users to those with an id greater than the supplied id\n * @returns {Promise<Collection<Snowflake, User>>}\n */\n fetchUsers(limit = 100, { after, before } = {}) {\n const message = this.message;\n return message.client.rest.methods.getMessageReactionUsers(\n message, this.emoji.identifier, { after, before, limit }\n ).then(data => {\n const users = new Collection();\n for (const rawUser of data) {\n const user = this.message.client.dataManager.newUser(rawUser);\n this.users.set(user.id, user);\n users.set(user.id, user);\n }\n return users;\n });\n }\n}\n\nmodule.exports = MessageReaction;\n\n\n//# sourceURL=webpack:///./src/structures/MessageReaction.js?");
/***/ }),
@ -1804,9 +1804,9 @@ eval("const Collector = __webpack_require__(/*! ./interfaces/Collector */ \"./sr
\*****************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports) {
/***/ (function(module, exports, __webpack_require__) {
eval("/**\n * Represents a limited emoji set used for both custom and unicode emojis. Custom emojis\n * will use this class opposed to the Emoji class when the client doesn't know enough\n * information about them.\n */\nclass ReactionEmoji {\n constructor(reaction, name, id) {\n /**\n * The message reaction this emoji refers to\n * @type {MessageReaction}\n */\n this.reaction = reaction;\n\n /**\n * The name of this reaction emoji\n * @type {string}\n */\n this.name = name;\n\n /**\n * The ID of this reaction emoji\n * @type {?Snowflake}\n */\n this.id = id;\n }\n\n /**\n * The identifier of this emoji, used for message reactions\n * @type {string}\n * @readonly\n */\n get identifier() {\n if (this.id) return `${this.name}:${this.id}`;\n return encodeURIComponent(this.name);\n }\n\n /**\n * Creates the text required to form a graphical emoji on Discord.\n * @example\n * // Send the emoji used in a reaction to the channel the reaction is part of\n * reaction.message.channel.send(`The emoji used is ${reaction.emoji}`);\n * @returns {string}\n */\n toString() {\n return this.id ? `<:${this.name}:${this.id}>` : this.name;\n }\n}\n\nmodule.exports = ReactionEmoji;\n\n\n//# sourceURL=webpack:///./src/structures/ReactionEmoji.js?");
eval("const Constants = __webpack_require__(/*! ../util/Constants */ \"./src/util/Constants.js\");\nconst Snowflake = __webpack_require__(/*! ../util/Snowflake */ \"./src/util/Snowflake.js\");\n\n/**\n * Represents a limited emoji set used for both custom and unicode emojis. Custom emojis\n * will use this class opposed to the Emoji class when the client doesn't know enough\n * information about them.\n */\nclass ReactionEmoji {\n constructor(reaction, emoji) {\n /**\n * The client that instantiated this object\n * @name ReactionEmoji#client\n * @type {Client}\n * @readonly\n */\n Object.defineProperty(this, 'client', { value: reaction.message.client });\n\n /**\n * The message reaction this emoji refers to\n * @type {MessageReaction}\n */\n this.reaction = reaction;\n\n /**\n * The name of this reaction emoji\n * @type {string}\n */\n this.name = emoji.name;\n\n /**\n * The ID of this reaction emoji\n * @type {?Snowflake}\n */\n this.id = emoji.id;\n\n /**\n * Whether this reaction emoji is animated\n * @type {boolean}\n */\n this.animated = emoji.animated || false;\n }\n\n /**\n * The timestamp the reaction emoji was created at, or null if unicode\n * @type {?number}\n * @readonly\n */\n get createdTimestamp() {\n if (!this.id) return null;\n return Snowflake.deconstruct(this.id).timestamp;\n }\n\n /**\n * The time the reaction emoji was created, or null if unicode\n * @type {?Date}\n * @readonly\n */\n get createdAt() {\n if (!this.id) return null;\n return new Date(this.createdTimestamp);\n }\n\n /**\n * The URL to the reaction emoji file, or null if unicode\n * @type {string}\n * @readonly\n */\n get url() {\n if (!this.id) return null;\n return Constants.Endpoints.CDN(this.client.options.http.cdn).Emoji(this.id, this.animated ? 'gif' : 'png');\n }\n\n /**\n * The identifier of this emoji, used for message reactions\n * @type {string}\n * @readonly\n */\n get identifier() {\n if (this.id) return `${this.name}:${this.id}`;\n return encodeURIComponent(this.name);\n }\n\n /**\n * Creates the text required to form a graphical emoji on Discord.\n * @example\n * // Send the emoji used in a reaction to the channel the reaction is part of\n * reaction.message.channel.send(`The emoji used is ${reaction.emoji}`);\n * @returns {string}\n */\n toString() {\n if (!this.id) return this.name;\n\n return `<${this.animated ? 'a' : ''}:${this.name}:${this.id}>`;\n }\n}\n\nmodule.exports = ReactionEmoji;\n\n\n//# sourceURL=webpack:///./src/structures/ReactionEmoji.js?");
/***/ }),

File diff suppressed because one or more lines are too long