🐛 Change the way defer works, so it's all done by the bot instance

This commit is contained in:
NikolajDanger
2021-04-12 10:20:25 +02:00
parent 1acc0d407d
commit 78d8575e15
12 changed files with 31 additions and 61 deletions

View File

@ -10,7 +10,7 @@ class Hangman():
self.draw = DrawHangman(bot)
async def start(self, ctx):
await ctx.defer()
await self.bot.defer(ctx)
channel = str(ctx.channel_id)
user = f"#{ctx.author.id}"
game = self.bot.database["hangman games"].find_one({"_id":channel})