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
- 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!:method: Client#destroy()
@14.16.3
Logs out, terminates the connection to Discord, and destroys the client.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
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
meant to select 13, my bad
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
issume i made it in v14
still the same issue
no it doesn't
here is an example of what i mean
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