Update Discord.js / Breaking Discord API changes

This commit is contained in:
Skylar Grant 2023-04-01 20:39:19 -04:00
parent 9580a500fd
commit 26b79327be
3 changed files with 11 additions and 6 deletions

View File

@ -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",

View File

@ -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);

View File

@ -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",