From 7409f92dc2a46b2d809712daffcf65e4939595e4 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 16 Dec 2022 15:36:51 -0500 Subject: [PATCH] Fix typo preventing catch of guild join/leave --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index cb4606f..32022fd 100644 --- a/index.js +++ b/index.js @@ -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); });