log out bot discord.py code example Example: logout in discord.py Client.logout() --------or---------- Client.save()