I have a bot that has a say command and I would like to make this command public to everyone, but a possible risk is they could ping "@everyone" or "@here" via the bot's message.
If anybody has a way to mitigate this and prevent the bot from pinging everyone, please let me know.
My code:
@bot.command()
@commands.has_guild_permissions(administrator=True)
async def say(ctx, *, message=None):
message = message or "Please say something to use the say command!"
await ctx.message.delete()
await ctx.send(message)