diff --git a/jarvis/cogs/core/admin/verify.py b/jarvis/cogs/core/admin/verify.py index 2618c73..7c6afcc 100644 --- a/jarvis/cogs/core/admin/verify.py +++ b/jarvis/cogs/core/admin/verify.py @@ -63,11 +63,11 @@ class VerifyCog(Extension): while not verified: response = await self.bot.wait_for_component( messages=message, - check=lambda x: ctx.author.id == x.context.author.id, + check=lambda x: ctx.author.id == x.ctx.author.id, timeout=30, ) - correct = response.context.custom_id.split("||")[-1] == "yes" + correct = response.ctx.custom_id.split("||")[-1] == "yes" if correct: for row in components: for component in row.components: @@ -86,14 +86,14 @@ class VerifyCog(Extension): except AttributeError: self.logger.warning("Unverified role deleted before verification finished") - await response.context.edit_origin( + await response.ctx.edit_origin( content=f"Welcome, {ctx.author.mention}. Please enjoy your stay.", components=components, ) - await response.context.message.delete(delay=5) + await response.ctx.message.delete(delay=5) self.logger.debug(f"User {ctx.author.id} verified successfully") else: - await response.context.edit_origin( + await response.ctx.edit_origin( content=(f"{ctx.author.mention}, incorrect. " "Please press the button that says `YES`") ) except asyncio.TimeoutError: