discord.py login and logout code example Example: logout in discord.py Client.logout() --------or---------- Client.save()