not-an-aardvark / snoowrap

A JavaScript wrapper for the reddit API
MIT License
1.01k stars 125 forks source link

How to get comments from a Submission? #376

Open learnacadman opened 1 year ago

learnacadman commented 1 year ago

I am using this:

submissions = await r.getSubreddit('SubRedditName').getHot({limit: 20});
const comments = await submissions[0].expandReplies();
console.log(comments);

But it doesn't give me an array/object of comments.