From: CMDR furrycat Date: Thu, 25 Mar 2021 10:06:01 +0000 (+0100) Subject: Don't try to mention role in private message. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=3f0bc1d6d54bd9b12bfaeb4e0611840b1494569c;p=furrycat%2Fcatbot.git Don't try to mention role in private message. --- diff --git a/plugins/role/__init__.py b/plugins/role/__init__.py index 372063f..930cfc0 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.id, role.guild.name) if bot.is_private(message.channel) else '<@&{}>'.format(role.id), allowed_mentions = discord.AllowedMentions.none(), typing = typing) + m = await bot.say(message.channel, '"{}" on {}'.format(role.name, 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)