chore: add strict mode (#2974)

This commit is contained in:
Gus Caplan
2018-12-03 15:19:10 -06:00
committed by Isabella
parent ecaec29380
commit 42505b78c1
164 changed files with 327 additions and 0 deletions
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.ChannelCreate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.ChannelDelete.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildBanRemove.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
const { Events, Status } = require('../../../util/Constants');
module.exports = async (client, { d: data }, shard) => {
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildDelete.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildEmojisUpdate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildIntegrationsUpdate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
const Collection = require('../../../util/Collection');
@@ -1,3 +1,5 @@
'use strict';
const { Events, Status } = require('../../../util/Constants');
module.exports = (client, { d: data }, shard) => {
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet, shard) => {
client.actions.GuildMemberRemove.handle(packet.d, shard);
};
@@ -1,3 +1,5 @@
'use strict';
const { Status, Events } = require('../../../util/Constants');
module.exports = (client, { d: data }, shard) => {
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildRoleCreate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildRoleDelete.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildRoleUpdate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildSync.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildUpdate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageCreate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageDelete.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageDeleteBulk.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageReactionRemove.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageReactionRemoveAll.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.PresenceUpdate.handle(packet.d);
};
+2
View File
@@ -1,3 +1,5 @@
'use strict';
let ClientUser;
module.exports = (client, { d: data }, shard) => {
+2
View File
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet, shard) => {
@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.UserUpdate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.emit('self.voiceServer', packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.VoiceStateUpdate.handle(packet.d);
};
@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.WebhooksUpdate.handle(packet.d);
};
+2
View File
@@ -1,3 +1,5 @@
'use strict';
const { WSEvents } = require('../../../util/Constants');
const handlers = {};