From 26b79327bebfb6e5c3bec81941f8c246bc017141 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 1 Apr 2023 20:39:19 -0400 Subject: [PATCH] Update Discord.js / Breaking Discord API changes --- data/strings.json | 6 +++--- modules/utils.js | 9 +++++++-- package.json | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/data/strings.json b/data/strings.json index 25f2974..d93d8fd 100755 --- a/data/strings.json +++ b/data/strings.json @@ -19,11 +19,11 @@ }, "embeds": { "footer": "Silvanus is not affiliated with Grow A Tree or Limbo Labs", - "color": "0x55FF55", + "color": 5635925, "errorTitle": "Oops!", "errorPrefix": "There seems to have been a problem.", - "waterColor": "0x5555FF", - "fruitColor": "0xCC5555", + "waterColor": 5592575, + "fruitColor": 13391189, "waterTitle": "Water Notification", "fruitTitle": "Fruit Notification", "roleMenuTitle": "Role Menu", diff --git a/modules/utils.js b/modules/utils.js index fbedd23..5f20230 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -24,10 +24,15 @@ const client = new Client({ const fn = require('../modules/functions.js'); client.once('ready', async () => { - watchRequestRates(); + // watchRequestRates(); console.log('Ready!'); const count = JSON.stringify(client.guilds.cache.size); - console.log(count); + console.log("I'm currently in " + count + " servers."); + const guilds = client.guilds.cache; + guilds.each(g => { + console.log(g.name); + }); + process.exit(); }); client.login(token); diff --git a/package.json b/package.json index 7081a8a..c8b7304 100755 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "homepage": "https://github.com/voidf1sh/silvanus#readme", "dependencies": { "axios": "^1.3.3", - "discord.js": "^14.7.1", + "discord.js": "^14.9.0", "dotenv": "^16.0.3", "mysql": "^2.18.1", "string-replace-all": "^2.0.0",