mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: b7e16ad4b8
This commit is contained in:
parent
9311eaa0ff
commit
8192c41470
1 changed files with 54 additions and 54 deletions
|
|
@ -21736,27 +21736,27 @@ module.exports = GuildRoleUpdateAction;
|
||||||
/* 116 */
|
/* 116 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const Action = __webpack_require__(2);
|
const Action = __webpack_require__(2);
|
||||||
|
|
||||||
class GuildRolesPositionUpdate extends Action {
|
class GuildRolesPositionUpdate extends Action {
|
||||||
handle(data) {
|
handle(data) {
|
||||||
const client = this.client;
|
const client = this.client;
|
||||||
|
|
||||||
const guild = client.guilds.get(data.guild_id);
|
const guild = client.guilds.get(data.guild_id);
|
||||||
if (guild) {
|
if (guild) {
|
||||||
for (const partialRole of data.roles) {
|
for (const partialRole of data.roles) {
|
||||||
const role = guild.roles.get(partialRole.id);
|
const role = guild.roles.get(partialRole.id);
|
||||||
if (role) role.position = partialRole.position;
|
if (role) role.position = partialRole.position;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
guild,
|
guild,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = GuildRolesPositionUpdate;
|
module.exports = GuildRolesPositionUpdate;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
@ -24067,17 +24067,17 @@ module.exports = GuildDeleteHandler;
|
||||||
/* 144 */
|
/* 144 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const AbstractHandler = __webpack_require__(1);
|
const AbstractHandler = __webpack_require__(1);
|
||||||
|
|
||||||
class GuildEmojisUpdate extends AbstractHandler {
|
class GuildEmojisUpdate extends AbstractHandler {
|
||||||
handle(packet) {
|
handle(packet) {
|
||||||
const client = this.packetManager.client;
|
const client = this.packetManager.client;
|
||||||
const data = packet.d;
|
const data = packet.d;
|
||||||
client.actions.GuildEmojisUpdate.handle(data);
|
client.actions.GuildEmojisUpdate.handle(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = GuildEmojisUpdate;
|
module.exports = GuildEmojisUpdate;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
@ -24347,34 +24347,34 @@ module.exports = MessageDeleteBulkHandler;
|
||||||
/* 157 */
|
/* 157 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const AbstractHandler = __webpack_require__(1);
|
const AbstractHandler = __webpack_require__(1);
|
||||||
|
|
||||||
class MessageReactionAddHandler extends AbstractHandler {
|
class MessageReactionAddHandler extends AbstractHandler {
|
||||||
handle(packet) {
|
handle(packet) {
|
||||||
const client = this.packetManager.client;
|
const client = this.packetManager.client;
|
||||||
const data = packet.d;
|
const data = packet.d;
|
||||||
client.actions.MessageReactionAdd.handle(data);
|
client.actions.MessageReactionAdd.handle(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = MessageReactionAddHandler;
|
module.exports = MessageReactionAddHandler;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
/* 158 */
|
/* 158 */
|
||||||
/***/ (function(module, exports, __webpack_require__) {
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
const AbstractHandler = __webpack_require__(1);
|
const AbstractHandler = __webpack_require__(1);
|
||||||
|
|
||||||
class MessageReactionRemove extends AbstractHandler {
|
class MessageReactionRemove extends AbstractHandler {
|
||||||
handle(packet) {
|
handle(packet) {
|
||||||
const client = this.packetManager.client;
|
const client = this.packetManager.client;
|
||||||
const data = packet.d;
|
const data = packet.d;
|
||||||
client.actions.MessageReactionRemove.handle(data);
|
client.actions.MessageReactionRemove.handle(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = MessageReactionRemove;
|
module.exports = MessageReactionRemove;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue