From 91764bd64869b2efd438816d599f7963a05618c4 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Thu, 25 Mar 2021 10:51:16 +0100 Subject: [PATCH] Vend roles in colour. --- plugins/role/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/role/__init__.py b/plugins/role/__init__.py index 59cecf3..31cc330 100644 --- a/plugins/role/__init__.py +++ b/plugins/role/__init__.py @@ -483,7 +483,7 @@ class Role(DBConnection): if not candidate: await bot.say_many(message.channel, ['React with {} to any role listed below and I will attempt to assign the role.'.format(self.YES), 'React with {} if you want me to unassign the role.'.format(self.NO)], typing = typing) for role in roles: - m = await bot.say(message.channel, '"{}" on {}'.format(role.name, role.guild.name) if bot.is_private(message.channel) else role.name, typing = typing) + m = await bot.say(message.channel, '<@&{}> on {}'.format(role.id, role.guild.name) if bot.is_private(message.channel) else '<@&{}>'.format(role.id), allowed_mentions = discord.AllowedMentions.none(), typing = typing) if m: await m.add_reaction(self.YES) await m.add_reaction(self.NO) -- 2.7.4