diff --git a/disco/bot/bot.py b/disco/bot/bot.py index 65d8a58..d8a3c1d 100644 --- a/disco/bot/bot.py +++ b/disco/bot/bot.py @@ -308,9 +308,7 @@ class Bot(LoggingClass): if msg.guild: member = msg.guild.get_member(self.client.state.me) if member: - # If nickname is set, filter both the normal and nick mentions - if member.nick: - content = content.replace(member.mention, '', 1) + # Filter both the normal and nick mentions content = content.replace(member.user.mention, '', 1) content = content.replace(member.user.mention_nickname, '', 1) else: