🐛 Changed logout() to close() when logging out
logout() is deprecated in discord.py
This commit is contained in:
@ -45,7 +45,7 @@ class Gwendolyn(commands.Bot):
|
|||||||
self.databaseFuncs.stopServer()
|
self.databaseFuncs.stopServer()
|
||||||
|
|
||||||
self.log("Logging out", level = 25)
|
self.log("Logging out", level = 25)
|
||||||
await self.logout()
|
await self.close()
|
||||||
else:
|
else:
|
||||||
self.log(f"{ctx.author.display_name} tried to stop me! (error code 201)",str(ctx.channel_id))
|
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)")
|
await ctx.send(f"I don't think I will, {ctx.author.display_name} (error code 201)")
|
||||||
|
Reference in New Issue
Block a user