Safe Haskell | None |
---|---|
Language | Haskell2010 |
Reddit.Actions.Voting
Description
Contains actions for voting on posts and comments. There are functions
for upvoting (upvotePost
, upvoteComment
), downvoting (downvotePost
,
downVoteComment
) as well as removing votes that have already been cast
(unvotePost
, unvoteComment
).
Please note that automated voting (i.e. by a bot, as opposed to being specifically ordered to by a person) is strictly against the Reddit rules, and is a very effective way of getting your bot shadowbanned.
- upvotePost :: MonadIO m => PostID -> RedditT m ()
- downvotePost :: MonadIO m => PostID -> RedditT m ()
- unvotePost :: MonadIO m => PostID -> RedditT m ()
- upvoteComment :: MonadIO m => CommentID -> RedditT m ()
- downvoteComment :: MonadIO m => CommentID -> RedditT m ()
- unvoteComment :: MonadIO m => CommentID -> RedditT m ()
Documentation
upvotePost :: MonadIO m => PostID -> RedditT m () Source
Upvote a post.
downvotePost :: MonadIO m => PostID -> RedditT m () Source
Downvote a post.
unvotePost :: MonadIO m => PostID -> RedditT m () Source
Remove a vote from a post.
upvoteComment :: MonadIO m => CommentID -> RedditT m () Source
Upvote a comment.
downvoteComment :: MonadIO m => CommentID -> RedditT m () Source
Downvote a comment.
unvoteComment :: MonadIO m => CommentID -> RedditT m () Source
Remove a previously-cast vote from a comment.