Use X instead of 10
Change-Id: Ifc9a4e63a3b2519bd90111ab1cef00119d90335e
Reviewed-on: https://git.clicks.codes/c/Coded/EmojiUploader/+/297
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/index.ts b/index.ts
index 813febd..eda275f 100644
--- a/index.ts
+++ b/index.ts
@@ -45,9 +45,10 @@
let guilds = client.guilds.cache.filter((guild) => guild.ownerId == client.user.id);
if (guilds.size < 10) {
- console.log(`Creating ${client.user.username} Emoji ${guilds.size + 1}`)
+ let i = guilds.size + 1
+ console.log(`Creating ${client.user.username} Emoji ${i == 10 ? "X" : i}`)
const created = await client.guilds.create({
- name: `${client.user.username} Emoji ${guilds.size + 1}`
+ name: `${client.user.username} Emoji ${i == 10 ? "X" : i}`
});
console.log(`Created: ${created.name}: ${created.id}`)
return await propogateGuilds(client);