Webpack build for branch 11.5-dev: 903f6ca75f

This commit is contained in:
Travis CI 2020-01-24 15:44:41 +00:00
parent 58417c567c
commit 67230be609
2 changed files with 4 additions and 4 deletions

View file

@ -1314,7 +1314,7 @@ eval("const AbstractHandler = __webpack_require__(/*! ./AbstractHandler */ \"./s
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {
eval("const AbstractHandler = __webpack_require__(/*! ./AbstractHandler */ \"./src/client/websocket/packets/handlers/AbstractHandler.js\");\n\nconst ClientUser = __webpack_require__(/*! ../../../../structures/ClientUser */ \"./src/structures/ClientUser.js\");\n\nclass ReadyHandler extends AbstractHandler {\n handle(packet) {\n const client = this.packetManager.client;\n const data = packet.d;\n\n client.ws.heartbeat();\n\n data.user.user_settings = data.user_settings;\n data.user.user_guild_settings = data.user_guild_settings;\n\n const clientUser = new ClientUser(client, data.user);\n client.user = clientUser;\n client.readyAt = new Date();\n client.users.set(clientUser.id, clientUser);\n\n for (const guild of data.guilds) if (!client.guilds.has(guild.id)) client.dataManager.newGuild(guild);\n for (const privateDM of data.private_channels) client.dataManager.newChannel(privateDM);\n\n for (const relation of data.relationships) {\n const user = client.dataManager.newUser(relation.user);\n if (relation.type === 1) {\n client.user.friends.set(user.id, user);\n } else if (relation.type === 2) {\n client.user.blocked.set(user.id, user);\n }\n }\n\n data.presences = data.presences || [];\n for (const presence of data.presences) {\n client.dataManager.newUser(presence.user);\n client._setPresence(presence.user.id, presence);\n }\n\n if (data.notes) {\n for (const user in data.notes) {\n let note = data.notes[user];\n if (!note.length) note = null;\n\n client.user.notes.set(user, note);\n }\n }\n\n if (!client.user.bot && client.options.sync) client.setInterval(client.syncGuilds.bind(client), 30000);\n\n if (!client.users.has('1')) {\n client.dataManager.newUser({\n id: '1',\n username: 'Clyde',\n discriminator: '0000',\n avatar: 'https://discordapp.com/assets/f78426a064bc9dd24847519259bc42af.png',\n bot: true,\n status: 'online',\n game: null,\n verified: true,\n });\n }\n\n const t = client.setTimeout(() => {\n client.ws.connection.triggerReady();\n }, 1200 * data.guilds.length);\n\n client.setMaxListeners(data.guilds.length + 10);\n\n client.once('ready', () => {\n client.syncGuilds();\n client.setMaxListeners(10);\n client.clearTimeout(t);\n });\n\n const ws = this.packetManager.ws;\n\n ws.sessionID = data.session_id;\n client.emit('debug', `READY ${ws.sessionID}`);\n ws.checkIfReady();\n }\n}\n\nmodule.exports = ReadyHandler;\n\n\n//# sourceURL=webpack:///./src/client/websocket/packets/handlers/Ready.js?");
eval("const AbstractHandler = __webpack_require__(/*! ./AbstractHandler */ \"./src/client/websocket/packets/handlers/AbstractHandler.js\");\n\nconst ClientUser = __webpack_require__(/*! ../../../../structures/ClientUser */ \"./src/structures/ClientUser.js\");\n\nclass ReadyHandler extends AbstractHandler {\n handle(packet) {\n const client = this.packetManager.client;\n const data = packet.d;\n\n client.ws.heartbeat();\n\n data.user.user_settings = data.user_settings;\n data.user.user_guild_settings = data.user_guild_settings;\n\n const clientUser = new ClientUser(client, data.user);\n client.user = clientUser;\n client.readyAt = new Date();\n client.users.set(clientUser.id, clientUser);\n\n for (const guild of data.guilds) if (!client.guilds.has(guild.id)) client.dataManager.newGuild(guild);\n for (const privateDM of data.private_channels) client.dataManager.newChannel(privateDM);\n\n for (const relation of data.relationships) {\n const user = client.dataManager.newUser(relation.user);\n if (relation.type === 1) {\n client.user.friends.set(user.id, user);\n } else if (relation.type === 2) {\n client.user.blocked.set(user.id, user);\n }\n }\n\n data.presences = data.presences || [];\n for (const presence of data.presences) {\n client.dataManager.newUser(presence.user);\n client._setPresence(presence.user.id, presence);\n }\n\n if (data.notes) {\n for (const user in data.notes) {\n let note = data.notes[user];\n if (!note.length) note = null;\n\n client.user.notes.set(user, note);\n }\n }\n\n if (!client.user.bot && client.options.sync) client.setInterval(client.syncGuilds.bind(client), 30000);\n\n if (!client.users.has('1')) {\n client.dataManager.newUser({\n id: '1',\n username: 'Clyde',\n discriminator: '0000',\n avatar: 'https://discordapp.com/assets/f78426a064bc9dd24847519259bc42af.png',\n bot: true,\n status: 'online',\n game: null,\n verified: true,\n });\n }\n\n const t = client.setTimeout(() => {\n client.ws.connection.triggerReady();\n }, 1200 * data.guilds.length);\n\n const guildCount = data.guilds.length;\n\n if (client.getMaxListeners() !== 0) client.setMaxListeners(client.getMaxListeners() + guildCount);\n\n client.once('ready', () => {\n client.syncGuilds();\n if (client.getMaxListeners() !== 0) client.setMaxListeners(client.getMaxListeners() - guildCount);\n client.clearTimeout(t);\n });\n\n const ws = this.packetManager.ws;\n\n ws.sessionID = data.session_id;\n client.emit('debug', `READY ${ws.sessionID}`);\n ws.checkIfReady();\n }\n}\n\nmodule.exports = ReadyHandler;\n\n\n//# sourceURL=webpack:///./src/client/websocket/packets/handlers/Ready.js?");
/***/ }),
@ -1674,7 +1674,7 @@ eval("/**\n * Represents an attachment in a message.\n */\nclass MessageAttachme
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {
eval("const Collector = __webpack_require__(/*! ./interfaces/Collector */ \"./src/structures/interfaces/Collector.js\");\nconst util = __webpack_require__(/*! util */ \"./node_modules/util/util.js\");\n\n/**\n * @typedef {CollectorOptions} MessageCollectorOptions\n * @property {number} max The maximum amount of messages to process\n * @property {number} maxMatches The maximum amount of messages to collect\n */\n\n/**\n * Collects messages on a channel.\n * @extends {Collector}\n */\nclass MessageCollector extends Collector {\n /**\n * @param {TextChannel|DMChannel|GroupDMChannel} channel The channel\n * @param {CollectorFilter} filter The filter to be applied to this collector\n * @param {MessageCollectorOptions} options The options to be applied to this collector\n * @emits MessageCollector#message\n */\n constructor(channel, filter, options = {}) {\n super(channel.client, filter, options);\n\n /**\n * The channel\n * @type {TextBasedChannel}\n */\n this.channel = channel;\n\n /**\n * Total number of messages that were received in the channel during message collection\n * @type {number}\n */\n this.received = 0;\n\n this.client.setMaxListeners(this.client.getMaxListeners() + 1);\n this.client.on('message', this.listener);\n\n // For backwards compatibility (remove in v12)\n if (this.options.max) this.options.maxProcessed = this.options.max;\n if (this.options.maxMatches) this.options.max = this.options.maxMatches;\n this._reEmitter = message => {\n /**\n * Emitted when the collector receives a message.\n * @event MessageCollector#message\n * @param {Message} message The message\n * @deprecated\n */\n this.emit('message', message);\n };\n this.on('collect', this._reEmitter);\n }\n\n // Remove in v12\n on(eventName, listener) {\n if (eventName === 'message') {\n listener = util.deprecate(listener, 'MessageCollector will soon no longer emit \"message\", use \"collect\" instead');\n }\n super.on(eventName, listener);\n }\n\n /**\n * Handle an incoming message for possible collection.\n * @param {Message} message The message that could be collected\n * @returns {?{key: Snowflake, value: Message}}\n * @private\n */\n handle(message) {\n if (message.channel.id !== this.channel.id) return null;\n this.received++;\n return {\n key: message.id,\n value: message,\n };\n }\n\n /**\n * Check after collection to see if the collector is done.\n * @returns {?string} Reason to end the collector, if any\n * @private\n */\n postCheck() {\n // Consider changing the end reasons for v12\n if (this.options.maxMatches && this.collected.size >= this.options.max) return 'matchesLimit';\n if (this.options.max && this.received >= this.options.maxProcessed) return 'limit';\n return null;\n }\n\n /**\n * Removes event listeners.\n * @private\n */\n cleanup() {\n this.removeListener('collect', this._reEmitter);\n this.client.removeListener('message', this.listener);\n this.client.setMaxListeners(this.client.getMaxListeners() - 1);\n }\n}\n\nmodule.exports = MessageCollector;\n\n\n//# sourceURL=webpack:///./src/structures/MessageCollector.js?");
eval("const Collector = __webpack_require__(/*! ./interfaces/Collector */ \"./src/structures/interfaces/Collector.js\");\nconst util = __webpack_require__(/*! util */ \"./node_modules/util/util.js\");\n\n/**\n * @typedef {CollectorOptions} MessageCollectorOptions\n * @property {number} max The maximum amount of messages to process\n * @property {number} maxMatches The maximum amount of messages to collect\n */\n\n/**\n * Collects messages on a channel.\n * @extends {Collector}\n */\nclass MessageCollector extends Collector {\n /**\n * @param {TextChannel|DMChannel|GroupDMChannel} channel The channel\n * @param {CollectorFilter} filter The filter to be applied to this collector\n * @param {MessageCollectorOptions} options The options to be applied to this collector\n * @emits MessageCollector#message\n */\n constructor(channel, filter, options = {}) {\n super(channel.client, filter, options);\n\n /**\n * The channel\n * @type {TextBasedChannel}\n */\n this.channel = channel;\n\n /**\n * Total number of messages that were received in the channel during message collection\n * @type {number}\n */\n this.received = 0;\n\n if (this.client.getMaxListeners() !== 0) this.client.setMaxListeners(this.client.getMaxListeners() + 1);\n this.client.on('message', this.listener);\n\n // For backwards compatibility (remove in v12)\n if (this.options.max) this.options.maxProcessed = this.options.max;\n if (this.options.maxMatches) this.options.max = this.options.maxMatches;\n this._reEmitter = message => {\n /**\n * Emitted when the collector receives a message.\n * @event MessageCollector#message\n * @param {Message} message The message\n * @deprecated\n */\n this.emit('message', message);\n };\n this.on('collect', this._reEmitter);\n }\n\n // Remove in v12\n on(eventName, listener) {\n if (eventName === 'message') {\n listener = util.deprecate(listener, 'MessageCollector will soon no longer emit \"message\", use \"collect\" instead');\n }\n super.on(eventName, listener);\n }\n\n /**\n * Handle an incoming message for possible collection.\n * @param {Message} message The message that could be collected\n * @returns {?{key: Snowflake, value: Message}}\n * @private\n */\n handle(message) {\n if (message.channel.id !== this.channel.id) return null;\n this.received++;\n return {\n key: message.id,\n value: message,\n };\n }\n\n /**\n * Check after collection to see if the collector is done.\n * @returns {?string} Reason to end the collector, if any\n * @private\n */\n postCheck() {\n // Consider changing the end reasons for v12\n if (this.options.maxMatches && this.collected.size >= this.options.max) return 'matchesLimit';\n if (this.options.max && this.received >= this.options.maxProcessed) return 'limit';\n return null;\n }\n\n /**\n * Removes event listeners.\n * @private\n */\n cleanup() {\n this.removeListener('collect', this._reEmitter);\n this.client.removeListener('message', this.listener);\n if (this.client.getMaxListeners() !== 0) this.client.setMaxListeners(this.client.getMaxListeners() - 1);\n }\n}\n\nmodule.exports = MessageCollector;\n\n\n//# sourceURL=webpack:///./src/structures/MessageCollector.js?");
/***/ }),
@ -1794,7 +1794,7 @@ eval("const { ActivityFlags, Endpoints } = __webpack_require__(/*! ../util/Const
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */
/***/ (function(module, exports, __webpack_require__) {
eval("const Collector = __webpack_require__(/*! ./interfaces/Collector */ \"./src/structures/interfaces/Collector.js\");\nconst Collection = __webpack_require__(/*! ../util/Collection */ \"./src/util/Collection.js\");\n\n/**\n * @typedef {CollectorOptions} ReactionCollectorOptions\n * @property {number} max The maximum total amount of reactions to collect\n * @property {number} maxEmojis The maximum number of emojis to collect\n * @property {number} maxUsers The maximum number of users to react\n */\n\n/**\n * Collects reactions on messages.\n * @extends {Collector}\n */\nclass ReactionCollector extends Collector {\n /**\n * @param {Message} message The message upon which to collect reactions\n * @param {CollectorFilter} filter The filter to apply to this collector\n * @param {ReactionCollectorOptions} [options={}] The options to apply to this collector\n */\n constructor(message, filter, options = {}) {\n super(message.client, filter, options);\n\n /**\n * The message\n * @type {Message}\n */\n this.message = message;\n\n /**\n * The users which have reacted\n * @type {Collection}\n */\n this.users = new Collection();\n\n /**\n * The total number of reactions collected\n * @type {number}\n */\n this.total = 0;\n\n this.client.setMaxListeners(this.client.getMaxListeners() + 1);\n this.client.on('messageReactionAdd', this.listener);\n }\n\n /**\n * Handle an incoming reaction for possible collection.\n * @param {MessageReaction} reaction The reaction to possibly collect\n * @returns {?{key: Snowflake, value: MessageReaction}}\n * @private\n */\n handle(reaction) {\n if (reaction.message.id !== this.message.id) return null;\n return {\n key: reaction.emoji.id || reaction.emoji.name,\n value: reaction,\n };\n }\n\n /**\n * Check after collection to see if the collector is done.\n * @param {MessageReaction} reaction The reaction that was collected\n * @param {User} user The user that reacted\n * @returns {?string} Reason to end the collector, if any\n * @private\n */\n postCheck(reaction, user) {\n this.users.set(user.id, user);\n if (this.options.max && ++this.total >= this.options.max) return 'limit';\n if (this.options.maxEmojis && this.collected.size >= this.options.maxEmojis) return 'emojiLimit';\n if (this.options.maxUsers && this.users.size >= this.options.maxUsers) return 'userLimit';\n return null;\n }\n\n /**\n * Remove event listeners.\n * @private\n */\n cleanup() {\n this.client.removeListener('messageReactionAdd', this.listener);\n this.client.setMaxListeners(this.client.getMaxListeners() - 1);\n }\n}\n\nmodule.exports = ReactionCollector;\n\n\n//# sourceURL=webpack:///./src/structures/ReactionCollector.js?");
eval("const Collector = __webpack_require__(/*! ./interfaces/Collector */ \"./src/structures/interfaces/Collector.js\");\nconst Collection = __webpack_require__(/*! ../util/Collection */ \"./src/util/Collection.js\");\n\n/**\n * @typedef {CollectorOptions} ReactionCollectorOptions\n * @property {number} max The maximum total amount of reactions to collect\n * @property {number} maxEmojis The maximum number of emojis to collect\n * @property {number} maxUsers The maximum number of users to react\n */\n\n/**\n * Collects reactions on messages.\n * @extends {Collector}\n */\nclass ReactionCollector extends Collector {\n /**\n * @param {Message} message The message upon which to collect reactions\n * @param {CollectorFilter} filter The filter to apply to this collector\n * @param {ReactionCollectorOptions} [options={}] The options to apply to this collector\n */\n constructor(message, filter, options = {}) {\n super(message.client, filter, options);\n\n /**\n * The message\n * @type {Message}\n */\n this.message = message;\n\n /**\n * The users which have reacted\n * @type {Collection}\n */\n this.users = new Collection();\n\n /**\n * The total number of reactions collected\n * @type {number}\n */\n this.total = 0;\n\n if (this.client.getMaxListeners() !== 0) this.client.setMaxListeners(this.client.getMaxListeners() + 1);\n this.client.on('messageReactionAdd', this.listener);\n }\n\n /**\n * Handle an incoming reaction for possible collection.\n * @param {MessageReaction} reaction The reaction to possibly collect\n * @returns {?{key: Snowflake, value: MessageReaction}}\n * @private\n */\n handle(reaction) {\n if (reaction.message.id !== this.message.id) return null;\n return {\n key: reaction.emoji.id || reaction.emoji.name,\n value: reaction,\n };\n }\n\n /**\n * Check after collection to see if the collector is done.\n * @param {MessageReaction} reaction The reaction that was collected\n * @param {User} user The user that reacted\n * @returns {?string} Reason to end the collector, if any\n * @private\n */\n postCheck(reaction, user) {\n this.users.set(user.id, user);\n if (this.options.max && ++this.total >= this.options.max) return 'limit';\n if (this.options.maxEmojis && this.collected.size >= this.options.maxEmojis) return 'emojiLimit';\n if (this.options.maxUsers && this.users.size >= this.options.maxUsers) return 'userLimit';\n return null;\n }\n\n /**\n * Remove event listeners.\n * @private\n */\n cleanup() {\n this.client.removeListener('messageReactionAdd', this.listener);\n if (this.client.getMaxListeners() !== 0) this.client.setMaxListeners(this.client.getMaxListeners() - 1);\n }\n}\n\nmodule.exports = ReactionCollector;\n\n\n//# sourceURL=webpack:///./src/structures/ReactionCollector.js?");
/***/ }),

File diff suppressed because one or more lines are too long