🐛 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

@ -86,10 +86,7 @@ class Trivia():
return None
async def triviaParse(self, ctx, answer):
try:
await ctx.defer()
except:
self.bot.log("defer failed")
await self.bot.defer(ctx)
if answer == "":
question, options, correctAnswer = self.triviaStart(str(ctx.channel_id))
if options != "":