How do you make your bot ignore reply mentions? (Discord.py)
In my bot, I have an event for replying to when the bot is mentioned. The issue is, that it replies when u mention the bot through replying to it. How can I fix this? Here's my code:
@commands.Cog.listener() async def on_message(self, msg): guild = msg.guild prefix = get_prefix(self.client, guild) if msg.author == self.client.user: return if msg.mention_everyone: return if self.client.user.mentioned_in(msg): embed = discord.Embed(description=f"The prefix for this server is `{prefix}` <:info:857962218150953000>", color=0x505050) await msg.channel.send(embed=embed)
Voters
I don't believe it is possible, but I wasn't able to find anything for
differentiate between ping and reply discord py
@Coder100 Alright, I'll keep searching though