Anthony
Anthony
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Anthony on 2/17/2024 in #djs-questions
How can I loop through all guilds and log the name
I think I was just missing the guilds intent
8 replies
DIAdiscord.js - Imagine an app
Created by Anthony on 2/17/2024 in #djs-questions
How can I loop through all guilds and log the name
well this logs undefined
client.guilds.cache.forEach(guild => {
console.log(guild.name)
});
client.guilds.cache.forEach(guild => {
console.log(guild.name)
});
8 replies
DIAdiscord.js - Imagine an app
Created by Anthony on 2/17/2024 in #djs-questions
How can I loop through all guilds and log the name
oh
8 replies
DIAdiscord.js - Imagine an app
Created by Anthony on 2/17/2024 in #djs-questions
How can I loop through all guilds and log the name
I just set shard: auto
8 replies
DIAdiscord.js - Imagine an app
Created by Anthony on 2/17/2024 in #djs-questions
How can I loop through all guilds and log the name
I think its internal sharding
8 replies
DIAdiscord.js - Imagine an app
Created by Anthony on 2/17/2024 in #djs-questions
How can I loop through all guilds and log the name
I already tried that but appearantly I need to use broadcastEval (because of the sharding I guess?) https://discord.com/channels/222078108977594368/824411059443204127/1208498366909120574: add all your guilds to an array with broadcastEval and iterate over that I am just not sure how to do that
8 replies