🐛 Changed logout() to close() when logging out

logout() is deprecated in discord.py
This commit is contained in:
NikolajDanger
2021-04-06 15:06:34 +02:00
parent d880c84b1a
commit f4587b324c

View File

@ -45,7 +45,7 @@ class Gwendolyn(commands.Bot):
self.databaseFuncs.stopServer()
self.log("Logging out", level = 25)
await self.logout()
await self.close()
else:
self.log(f"{ctx.author.display_name} tried to stop me! (error code 201)",str(ctx.channel_id))
await ctx.send(f"I don't think I will, {ctx.author.display_name} (error code 201)")