Don't try to mention role in private message.
authorCMDR furrycat <elite@furrycat.net>
Thu, 25 Mar 2021 10:06:01 +0000 (11:06 +0100)
committerCMDR furrycat <elite@furrycat.net>
Thu, 25 Mar 2021 10:06:01 +0000 (11:06 +0100)
plugins/role/__init__.py

index 372063f..930cfc0 100644 (file)
@@ -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)