How to see how many servers my discord bot is in

I put in a code and it didnt work so please help

What library does your bot use?
What have you tried?
What errors does it return?
Can you share your code?

i get this error code in return client.setActivity(serving ${client.guilds.cache.size} servers);
12:02 PM

i use js for library
the code i tried was

client.setActivity(`serving ${client.guilds.cache.size} servers`);

heres is my code Glitch :・゚✧

i Fixed my issue i used this to fix it
client.on(“ready”, () => {
client.user.setActivity(${client.users.cache.size} users in ${client.guilds.cache.size} servers, { type: “WATCHING” });

1 Like