#is it possible to list all the guilds that a bot is in?

13 messages · Page 1 of 1 (latest)

unkempt trail
#

I can see that more servers seem to be using my bot. Is it possible to list all the guilds a bot is invited to with discordjs?

elfin abyssBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

echo jewel
#

client.guilds.cache

unkempt trail
#

i can work with that but does discord itself have that information? i know this is about discordjs but i'm just curious.

echo jewel
#

I'm not following

#

What exactly do you mean by "does discord itself have that information"

trail flame
#

I believe they mean whether Discord has an interface listing all the guilds an application is in

unkempt trail
#

the cache will clear each time the bot is restarted. i just mean is there an api that will let me know where all the bot lives at any given time?

trail flame
#

Or not

unkempt trail
#

no, you're right @trail flame

unkempt trail
# echo jewel I'm not following

i mean that i could just store each detected guild by dumping that cache on every message so that i know every server that the bot has been on but that won't tell me if the bot has been disinvited, if i understand the cache. i was wondering if there is something like a client.guilds.joined or something like this that would tell me where all the bot is currently operating.

echo jewel
#

the cache only contains guilds the bot is on

#

if the bot is removed, the guild is removed from cache