mirror of
https://github.com/TheShadowEevee/Konpeki-Discord-Bot.git
synced 2025-01-11 14:38:49 -06:00
Fix typo preventing catch of guild join/leave
This commit is contained in:
parent
8bb74d9cd8
commit
7409f92dc2
1 changed files with 2 additions and 2 deletions
4
index.js
4
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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue