if user == reaction.message.author and reaction.emoji == ('💰'):
channel = client.get_channel(1245472750164906084)
await channel.send(f"{reaction.message.content} by {reaction.message.author.mention}")
This is working as intended (almost). All the messages looks like “@role the rest of the message”. What bot does right now is resending the message + adding “by @ user”.
Id like to make it ignore the “@role” part and start with “the rest of the message” and of course not to skip user mention.
Id like to make it ignore the “@role” part and start with “the rest of the message” and of course not to skip user mention. I have tried discord.utils.escape_mentions but then users are not being mentioned and that’s what I don’t want. I’d like to add that “the rest of the message” always changes – I think it’s important.
Any ideas?
Rivendare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.