aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-08-26 19:34:14 +0200
committerGravatar kwzrd <[email protected]>2020-08-26 19:34:14 +0200
commiteff2f75321fce0e8a8d11a1c85c2dad48552ded8 (patch)
tree5045d7fb15dde60a25cea1be0e448bd954aa0be1
parentVerification: separate guild invite by empty line (diff)
Verification: remove explicit everyones from allowed mentions
If the kwarg isn't passed, it uses the value that was given to the bot on init (False), despite the kwarg defaulting to True. Thanks to Mark and Senjan for helping me understand this. Co-authored-by: MarkKoz <[email protected]> Co-authored-by: Senjan21 <[email protected]>
-rw-r--r--bot/cogs/verification.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index a35681988..a0a82be0c 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -79,12 +79,8 @@ You will be kicked if you don't verify within `{KICKED_AFTER}` days.
REMINDER_FREQUENCY = 28 # Hours to wait between sending `REMINDER_MESSAGE`
-MENTION_CORE_DEVS = discord.AllowedMentions(
- everyone=False, roles=[discord.Object(constants.Roles.core_developers)]
-)
-MENTION_UNVERIFIED = discord.AllowedMentions(
- everyone=False, roles=[discord.Object(constants.Roles.unverified)]
-)
+MENTION_CORE_DEVS = discord.AllowedMentions(roles=[discord.Object(constants.Roles.core_developers)])
+MENTION_UNVERIFIED = discord.AllowedMentions(roles=[discord.Object(constants.Roles.unverified)])
# An async function taking a Member param
Request = t.Callable[[discord.Member], t.Awaitable]