aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2020-07-16 13:13:05 +0800
committerGravatar kosayoda <[email protected]>2020-07-16 13:13:05 +0800
commit1ee3febc398deafa4d87b6db93b4e3af6976b0e7 (patch)
tree250646aaca57a4d4a0120b271acbe18b42fbb81e
parentAllow mentioning other users and roles in reminders. (diff)
Send additional mentions in reminders.
-rw-r--r--bot/cogs/reminders.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py
index 5ef35602c..a004902c2 100644
--- a/bot/cogs/reminders.py
+++ b/bot/cogs/reminders.py
@@ -191,8 +191,12 @@ class Reminders(Cog):
name=f"Sorry it arrived {humanize_delta(late, max_units=2)} late!"
)
+ additional_mentions = ' '.join(
+ mentionable.mention for mentionable in self.get_mentionables_from_ids(reminder["mentions"])
+ )
+
await channel.send(
- content=user.mention,
+ content=f"{user.mention} {additional_mentions}",
embed=embed
)