Make a bot leave the server you run the command in.

^^
7 Replies
d.js toolkit
d.js toolkit3w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
d.js docs
d.js docs3w ago
:method: Guild#leave() @14.16.3 Leaves the guild.
// Leave a guild
guild.leave()
.then(guild => console.log(`Left the guild: ${guild.name}`))
.catch(console.error);
// Leave a guild
guild.leave()
.then(guild => console.log(`Left the guild: ${guild.name}`))
.catch(console.error);
Syjalo
Syjalo3w ago
It's not that hard to search in the docs
Stiefanek Was Taken💅🏻
how would I do it via guild id?
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Benluka.dev
Benluka.dev3w ago
Please don’t spoon fead link them to docs
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server