So right now I'm trying to figure out how to make my bot mention the role/member/everyone/here mention when a user uses it in a command but there is an issue. I can either make it so that it recognises roles or members separately. Is there a way to ignore that and just get whatever mention the user uses?
@bot.command()
@has_permissions(administrator=True)
async def announce(ctx, tit : str = None, desc : str = None, user : discord.Role = None):
if tit and desc:
if mention:
await ctx.channel.send(content = user.mention)
Whenever I use it on @here, for example, I get this error:
discord.ext.commands.errors.RoleNotFound: Role "@here" not found.