chore(deps): update deps and fix lint (#3833)

This commit is contained in:
Crawl
2020-02-24 23:14:31 +01:00
committed by GitHub
parent c1d396a6c4
commit 3a0470b45c
12 changed files with 39 additions and 38 deletions

View File

@@ -11,7 +11,7 @@ module.exports = async (client, { d: data }, shard) => {
// If the client was ready before and we had unavailable guilds, fetch them
if (client.ws.status === Status.READY && client.options.fetchAllMembers) {
await guild.members.fetch().catch(err =>
client.emit(Events.DEBUG, `Failed to fetch all members: ${err}\n${err.stack}`)
client.emit(Events.DEBUG, `Failed to fetch all members: ${err}\n${err.stack}`),
);
}
}
@@ -27,7 +27,7 @@ module.exports = async (client, { d: data }, shard) => {
*/
if (client.options.fetchAllMembers) {
await guild.members.fetch().catch(err =>
client.emit(Events.DEBUG, `Failed to fetch all members: ${err}\n${err.stack}`)
client.emit(Events.DEBUG, `Failed to fetch all members: ${err}\n${err.stack}`),
);
}
client.emit(Events.GUILD_CREATE, guild);