How do i get the Author of a message another message replies to #6654
Replies: 1 comment
-
Displayed above is the question I had Here is the code that works like intended. @client.event
async def on_message(message):
# Ignore itself and other bots
if (message.author.bot): return
# Check if message is a reply to a message from the bot
replied_message = await message.channel.fetch_message(message.reference.message_id)
if (replied_message.author == client.user):
await message.reply("you replied to me")
await client.process_commands(message) I hope if anyone else has had the same issue with no knowing how to exactly go about this they can find the help here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
if there is a message received in a chat and this is a reply to the bot, I want to create a reply to that message but I don't know how to check if it's a reply I checked the API documents but I can't seem to find anything about getting the author of a message that another message is a reply to? Is this already possible or is this feature not yet implemented?
my code right now:
Thanks in advance for answering my question and trying to help!
Beta Was this translation helpful? Give feedback.
All reactions