aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2022-07-25 22:21:41 +0100
committerGravatar Izan <[email protected]>2022-07-25 22:21:41 +0100
commitf7bff3d0c2e9711e147e327f44169e4718535f66 (patch)
treeef2c1c52c978dd5e6564ce3b0a404b4ed6e3d04a
parentAdd ability to delete multiple reminders (diff)
Display mentions instead of name attribute in `!reminder list`
-rw-r--r--bot/exts/utils/reminders.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/utils/reminders.py b/bot/exts/utils/reminders.py
index a08ba8e75..51fdd7873 100644
--- a/bot/exts/utils/reminders.py
+++ b/bot/exts/utils/reminders.py
@@ -352,8 +352,8 @@ class Reminders(Cog):
expiry = time.format_relative(remind_at)
mentions = ", ".join([
- # Both Role and User objects have the `name` attribute
- mention.name async for mention in self.get_mentionables(mentions)
+ # Both Role and User objects have the `mention` attribute
+ mentionable.mention async for mentionable in self.get_mentionables(mentions)
])
mention_string = f"\n**Mentions:** {mentions}" if mentions else ""
@@ -381,7 +381,6 @@ class Reminders(Cog):
lines,
ctx, embed,
max_lines=3,
- empty=True
)
@remind_group.group(name="edit", aliases=("change", "modify"), invoke_without_command=True)