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

View File

@@ -1,3 +1,5 @@
'use strict';
const Collection = require('../../util/Collection');
const WebSocketShard = require('./WebSocketShard');
const { Events, Status, WSEvents } = require('../../util/Constants');

View File

@@ -1,3 +1,5 @@
'use strict';
const EventEmitter = require('events');
const WebSocket = require('../../WebSocket');
const { Status, Events, OPCodes, WSEvents, WSCodes } = require('../../util/Constants');

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.ChannelCreate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.ChannelDelete.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildBanRemove.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events, Status } = require('../../../util/Constants');
module.exports = async (client, { d: data }, shard) => {

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildDelete.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildEmojisUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildIntegrationsUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
const Collection = require('../../../util/Collection');

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events, Status } = require('../../../util/Constants');
module.exports = (client, { d: data }, shard) => {

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet, shard) => {
client.actions.GuildMemberRemove.handle(packet.d, shard);
};

View File

@@ -1,3 +1,5 @@
'use strict';
const { Status, Events } = require('../../../util/Constants');
module.exports = (client, { d: data }, shard) => {

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildRoleCreate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildRoleDelete.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildRoleUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildSync.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.GuildUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageCreate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageDelete.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageDeleteBulk.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageReactionRemove.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.MessageReactionRemoveAll.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet) => {

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.PresenceUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
let ClientUser;
module.exports = (client, { d: data }, shard) => {

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, packet, shard) => {

View File

@@ -1,3 +1,5 @@
'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => {

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.UserUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.emit('self.voiceServer', packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.VoiceStateUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
module.exports = (client, packet) => {
client.actions.WebhooksUpdate.handle(packet.d);
};

View File

@@ -1,3 +1,5 @@
'use strict';
const { WSEvents } = require('../../../util/Constants');
const handlers = {};