aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2020-03-21 06:11:25 -0400
committerGravatar S. Co1 <[email protected]>2020-03-21 06:11:25 -0400
commit3597d22833096754c09e2970a80eff8e6b141132 (patch)
tree89627d2ab04c8fad171b24a233c019c7bbc6bcf7
parentMerge pull request #821 from python-discord/hemlock-perma-ban-watch-removal (diff)
Fix regression in verification cog
A stray `bot` was removed from the `on_message` listener, causing it to raise an exception rather than generate a `Context` object from incoming verification channel messages.
-rw-r--r--bot/cogs/verification.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index 107bc1058..b0a493e68 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -95,7 +95,7 @@ class Verification(Cog):
ping_everyone=constants.Filter.ping_everyone,
)
- ctx: Context = await self.get_context(message)
+ ctx: Context = await self.bot.get_context(message)
if ctx.command is not None and ctx.command.name == "accept":
return