mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
chore(deps): update deps and fix lint (#3833)
This commit is contained in:
@@ -106,7 +106,7 @@ exports.applyToClass = function applyToClass(structure) {
|
||||
Object.defineProperty(
|
||||
structure.prototype,
|
||||
prop,
|
||||
Object.getOwnPropertyDescriptor(VolumeInterface.prototype, prop)
|
||||
Object.getOwnPropertyDescriptor(VolumeInterface.prototype, prop),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user