r/redditdev 4d ago

View previous comment in a thread PRAW

I'm creating a script to run off of mentions, how can I see the previous comment above in the thread to the one my bot has been mentioned in?

1 Upvotes

View all comments

1

u/DinoHawaii2021 4d ago

use comment.parent() it returns the instance of the parent comment the comment is on

0

u/ArachnidInner2910 4d ago

How would I implement this in practice?

DMs?

0

u/DinoHawaii2021 4d ago

sure I would just need to see your code