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

Safe HaskellNone
LanguageHaskell2010

Reddit.Actions.User

Description

Contains user-related actions, like finding friends or retrieving a user's comments or information.

Synopsis

Documentation

getUserInfo :: MonadIO m => Username -> RedditT m User Source

Get the information Reddit exposes on user behind the specified username

aboutMe :: MonadIO m => RedditT m User Source

Get information of the currently-logged-in user.

getUserComments :: MonadIO m => Username -> RedditT m CommentListing Source

Get the listing of comments authored by the specified user.

getUserComments' :: MonadIO m => Options CommentID -> Username -> RedditT m CommentListing Source

Get the listing of comments authored by the specified user, with Options.

isUsernameAvailable :: MonadIO m => Username -> RedditT m Bool Source

Check whether the specified username is still available or has been taken.

getBlockedUsers :: MonadIO m => RedditT m [Relationship] Source

Get users blocked by the currently-logged-in user.

getFriends :: MonadIO m => RedditT m [Relationship] Source

Get friends of the currently-logged-in user.

lookupUserFlair :: MonadIO m => SubredditName -> Username -> RedditT m Flair Source

Check if a user has chosen (or been assign) user flair on a particular subreddit. Requires moderator privileges on the specified subreddit.

setUserFlair :: MonadIO m => SubredditName -> Username -> Text -> Text -> RedditT m () Source

Set a user's flair on the specified subreddit. Requires moderator privileges on the specified subreddit.