Fix typo preventing catch of guild join/leave

This commit is contained in:
Michael 2022-12-16 15:36:51 -05:00
parent 8bb74d9cd8
commit 7409f92dc2

View file

@ -104,13 +104,13 @@ client.on(Events.InteractionCreate, async interaction => {
});
// Joined a server
client.on(Events.guildCreate, guild => {
client.on(Events.GuildCreate, guild => {
// Report current server count with PM2 (Servers counted anonymously)
metrics.serverCount.set(guild.client.guilds.cache.size);
});
// Removed from a server
client.on(Events.guildDelete, guild => {
client.on(Events.GuildDelete, guild => {
// Report current server count with PM2 (Servers counted anonymously)
metrics.serverCount.set(guild.client.guilds.cache.size);
});