mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Revert "use LF instead of CRLF (#1392)"
This reverts commit 5e522e0a2e.
This commit is contained in:
@@ -36,8 +36,6 @@
|
|||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
|
|
||||||
"linebreak-style": ["error", "unix"],
|
|
||||||
|
|
||||||
"accessor-pairs": "warn",
|
"accessor-pairs": "warn",
|
||||||
"array-callback-return": "error",
|
"array-callback-return": "error",
|
||||||
"complexity": "warn",
|
"complexity": "warn",
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
const Action = require('./Action');
|
const Action = require('./Action');
|
||||||
|
|
||||||
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;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
const AbstractHandler = require('./AbstractHandler');
|
const AbstractHandler = require('./AbstractHandler');
|
||||||
|
|
||||||
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;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
const AbstractHandler = require('./AbstractHandler');
|
const AbstractHandler = require('./AbstractHandler');
|
||||||
|
|
||||||
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;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
const AbstractHandler = require('./AbstractHandler');
|
const AbstractHandler = require('./AbstractHandler');
|
||||||
|
|
||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user