coldteaman
coldteaman

Reputation: 51

How to disconnect discord.py (self)bot?

I am creating a Discord self-bot that will run for multiple users, thus needing to disconnect each time one user is finished with the bot. Is there any way I can programmatically disconnect the selfbot from the user's account without stopping the entire application?

Thanks in advance,

ICT :)

Upvotes: 5

Views: 25566

Answers (1)

Fixator10
Fixator10

Reputation: 670

Client.logout() or Client.close()

Upvotes: 12

Related Questions