| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Reddit.Actions.Comment
Description
Contains comment-related actions, like editing comments and performing moderator actions on posts.
Synopsis
- getNewComments :: Monad m => Maybe SubredditName -> RedditT m CommentListing
- getNewComments' :: Monad m => Options CommentID -> Maybe SubredditName -> RedditT m CommentListing
- getMoreChildren :: Monad m => PostID -> [CommentID] -> RedditT m [CommentReference]
- getCommentInfo :: Monad m => CommentID -> RedditT m Comment
- getCommentsInfo :: Monad m => [CommentID] -> RedditT m CommentListing
- editComment :: Monad m => CommentID -> Text -> RedditT m Comment
- deleteComment :: Monad m => CommentID -> RedditT m ()
- removeComment :: Monad m => CommentID -> RedditT m ()
Documentation
getNewComments :: Monad m => Maybe SubredditName -> RedditT m CommentListing Source #
Get a CommentListing for the most recent comments on the site overall.
This maps to http://reddit.com/r/$SUBREDDIT/comments, or http://reddit.com/comments
if the subreddit is not specified.
Note that none of the comments returned will have any child comments.
getNewComments' :: Monad m => Options CommentID -> Maybe SubredditName -> RedditT m CommentListing Source #
Get a CommentListing for the most recent comments with the specified Options and
SubredditName. Note that none of the comments returned will have any child comments.
If the Options is def, then this function is identical to getNewComments.
Arguments
| :: Monad m | |
| => PostID |
|
| -> [CommentID] | List of |
| -> RedditT m [CommentReference] |
Expand children comments that weren't fetched on initial load. Equivalent to the web UI's "load more comments" button.
getCommentInfo :: Monad m => CommentID -> RedditT m Comment Source #
Given a CommentID, getCommentInfo will return the full details for that comment.
getCommentsInfo :: Monad m => [CommentID] -> RedditT m CommentListing Source #
Given a list of CommentIDs, getCommentsInfo will return another list containing
the full details for all the comments. Note that Reddit's
API imposes a limitation of 100 comments per request, so this function will fail immediately if given a list of more than 100 IDs.
Edit a comment.