Destroy a client (logout) after using it

So for the past 2 days i've been searching for a way to logout of the token after destroying it. Is there any way?
10 Replies
d.js toolkit
d.js toolkit4w 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 docs4w ago
:method: Client#destroy() @14.16.3 Logs out, terminates the connection to Discord, and destroys the client.
babed
babedOP4w ago
won't actually turn the client off but the bot remains online and functions like normal the entire idea is about running multiple tokens and an administrator has the right to turn one of them off
babed
babedOP4w ago
No description
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
babed
babedOP4w ago
meant to select 13, my bad
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
babed
babedOP4w ago
issume i made it in v14 still the same issue no it doesn't
babed
babedOP4w ago
here is an example of what i mean
No description
babed
babedOP4w ago
but instead of leaving the guild is destroying the client which isn't working. yeah my bad forgot to write the line where it says to destroy cuz i made it into leaving the guild but it won't even turn the websocket connection off for that client. how else would i do it its connected to a voice channel its supposed to leave after a couple seconds
Want results from more Discord servers?
Add your server