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

^^
7 Replies
d.js toolkit
d.js toolkit3mo 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 docs3mo 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
Syjalo3mo ago
It's not that hard to search in the docs
Stiefanek
StiefanekOP3mo ago
how would I do it via guild id?
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
benluka.dev
benluka.dev3mo ago
Please don’t spoon fead link them to docs
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?