Closed nlanson closed 3 years ago
I am trying to save the content (body) of a post using the Snoowrap.Submission class.
However, I am unable to do this.
I have tried:
let content = reddit.getSubmission(submissionID).body; console.log(content); //undefined let content = reddit.getSubmission(submissionID).fetch().then((post) => { return post.body; }); console.log(content); //undefined
How can I make this work?
Resolved.
It was reddit.getSubmission(submissionId).selftext
reddit.getSubmission(submissionId).selftext
I am trying to save the content (body) of a post using the Snoowrap.Submission class.
However, I am unable to do this.
I have tried:
How can I make this work?