From f7bff3d0c2e9711e147e327f44169e4718535f66 Mon Sep 17 00:00:00 2001 From: Izan Date: Mon, 25 Jul 2022 22:21:41 +0100 Subject: Display mentions instead of name attribute in `!reminder list` --- bot/exts/utils/reminders.py | 5 ++--- 1 file 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) -- cgit v1.2.3