diff --git a/CHANGELOG.md b/CHANGELOG.md index 351eabee58..f31c42d6fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +# v2.10.1 + +### Changed +- Use reply author's top role for the mod tag by default. # v2.10.0 diff --git a/bot.py b/bot.py index 32770ff2d8..19c6df07c5 100644 --- a/bot.py +++ b/bot.py @@ -22,7 +22,7 @@ SOFTWARE. """ -__version__ = '2.10.0' +__version__ = '2.10.1' import asyncio import uvloop diff --git a/core/thread.py b/core/thread.py index c2a92450ef..7f244d6cb3 100644 --- a/core/thread.py +++ b/core/thread.py @@ -247,7 +247,8 @@ async def send(self, message, destination=None, from_mod=False, note=False, anon if anonymous and from_mod and not isinstance(destination, discord.TextChannel): # Anonymously sending to the user. - name = self.bot.config.get('anon_username', self.bot.config.get('mod_tag', 'Moderator')) + tag = self.bot.config.get('mod_tag', str(message.author.top_role)) + name = self.bot.config.get('anon_username', tag) avatar_url = self.bot.config.get('anon_avatar_url', self.bot.guild.icon_url) else: # Normal message @@ -315,7 +316,8 @@ def is_image_url(u, _): if anonymous and isinstance(destination, discord.TextChannel): # Anonymous reply sent in thread channel em.set_footer(text='Anonymous Reply') elif not anonymous: - em.set_footer(text=self.bot.config.get('mod_tag', 'Moderator')) # Normal messages + tag = self.bot.config.get('mod_tag', str(message.author.top_role)) + em.set_footer(text=tag) # Normal messages else: em.set_footer(text=self.bot.config.get('anon_tag', 'Response')) # Anonymous reply sent to user