Trying to stop loop before restarting the bot

pull/8/head
sgoudham 4 years ago
parent 0e975f5a38
commit 27bf0648c7

@ -170,7 +170,7 @@ async def restart(ctx):
colour=enso_embedmod_colours) colour=enso_embedmod_colours)
await ctx.send(embed=embed) await ctx.send(embed=embed)
await client.close() await client.loop.stop()
await client.logout() await client.logout()

Loading…
Cancel
Save