aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-08-26 19:42:31 +0200
committerGravatar kwzrd <[email protected]>2020-08-26 19:42:31 +0200
commit44aae4528ecec5eef8e2b56f7ac851219b35f080 (patch)
treed0854d724e28f2a6943fb3835112f98167d3450c
parentVerification: remove explicit everyones from allowed mentions (diff)
Verification: retain ping in edited confirmation msg
Prevent a ghost ping from occurring upon reaction. Co-authored-by: Senjan21 <[email protected]>
-rw-r--r--bot/cogs/verification.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index a0a82be0c..d21395a1c 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -192,11 +192,12 @@ class Verification(Cog):
# Since `n_members` is a suspiciously large number, we will ask for confirmation
log.debug("Amount of users is too large, requesting staff confirmation")
- core_devs = pydis.get_channel(constants.Channels.dev_core)
- confirmation_msg = await core_devs.send(
- f"<@&{constants.Roles.core_developers}> Verification determined that `{n_members}` members should "
- f"be kicked as they haven't verified in `{KICKED_AFTER}` days. This is `{percentage:.2%}` of the "
- f"guild's population. Proceed?",
+ core_dev_channel = pydis.get_channel(constants.Channels.dev_core)
+ core_dev_ping = f"<@&{constants.Roles.core_developers}>"
+
+ confirmation_msg = await core_dev_channel.send(
+ f"{core_dev_ping} Verification determined that `{n_members}` members should be kicked as they haven't "
+ f"verified in `{KICKED_AFTER}` days. This is `{percentage:.2%}` of the guild's population. Proceed?",
allowed_mentions=MENTION_CORE_DEVS,
)
@@ -229,9 +230,9 @@ class Verification(Cog):
# Edit the prompt message to reflect the final choice
if result is True:
- result_msg = f":ok_hand: Request to kick `{n_members}` members was authorized!"
+ result_msg = f":ok_hand: {core_dev_ping} Request to kick `{n_members}` members was authorized!"
else:
- result_msg = f":warning: Request to kick `{n_members}` members was denied!"
+ result_msg = f":warning: {core_dev_ping} Request to kick `{n_members}` members was denied!"
with suppress(discord.HTTPException):
await confirmation_msg.edit(content=result_msg)