reddit-0.2.2.2: Library for interfacing with Reddit's API

Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Documentation

upvotePost :: Monad m => PostID -> RedditT m () Source #

Upvote a post.

downvotePost :: Monad m => PostID -> RedditT m () Source #

Downvote a post.

unvotePost :: Monad m => PostID -> RedditT m () Source #

Remove a vote from a post.

upvoteComment :: Monad m => CommentID -> RedditT m () Source #

Upvote a comment.

downvoteComment :: Monad m => CommentID -> RedditT m () Source #

Downvote a comment.

unvoteComment :: Monad m => CommentID -> RedditT m () Source #

Remove a previously-cast vote from a comment.