I want to get the server where my bot participates in discord.js.

Asked 2 years ago, Updated 2 years ago, 145 views

I'd like to get a server with my bot participating in discord.js. What should I do?

node.js discord

2022-09-30 17:40

1 Answers

For discord.js v11:

client.guilds.map(build=>guild.name).join("\n");

For discord.js v12:

client.guilds.cache.map(build=>guild.name).join("\n");


2022-09-30 17:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.