Fix Guilds Count
Change-Id: I99a5a1fbe9b0f430cda5c679ecea71ff919ebeb3
Reviewed-on: https://git.clicks.codes/c/coded/EmojiUploader/+/290
Tested-by: Samuel Shuert <coded@clicks.codes>
Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/index.ts b/index.ts
index 7ce85d1..2bdb3fb 100644
--- a/index.ts
+++ b/index.ts
@@ -13,7 +13,7 @@
await client.guilds.fetch();
let guilds = client.guilds.cache.filter((guild) => guild.ownerId == client.user.id);
- if (guilds.size < 10) {
+ if (guilds.size <= 10) {
console.log(`Creating ${client.user.username} Emoji ${guilds.size + 1}`)
const created = await client.guilds.create({
name: `${client.user.username} Emoji ${guilds.size + 1}`