Skip to content
Discussion options

You must be logged in to vote

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:

@client.event
async def on_message(message):
    # Ignore itself and other bots
    if (message.author.bot): return
    #(check if the message is a reply to a message from the bot):
           message.reply("You replied to me!")

    await client.process_commands(message)

Thanks in advance for answering my question…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CoolCreasu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant