Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains actions for handling flair on a subreddit-wise basis.
Synopsis
- getFlairList :: Monad m => SubredditName -> RedditT m FlairListing
- getFlairList' :: Monad m => Options UserID -> SubredditName -> RedditT m FlairListing
- addLinkFlair :: Monad m => SubredditName -> Text -> Text -> Bool -> RedditT m ()
- flairCSV :: Monad m => SubredditName -> [(Username, Text, Text)] -> RedditT m Value
Documentation
getFlairList :: Monad m => SubredditName -> RedditT m FlairListing Source #
Get the flair list for a subreddit. Requires moderator privileges on the subreddit.
getFlairList' :: Monad m => Options UserID -> SubredditName -> RedditT m FlairListing Source #
Get the flair list for a subreddit (with Options
). Requires moderator
privileges on the subreddit.
:: Monad m | |
=> SubredditName | The subreddit whose template you want to modify |
-> Text | The intended CSS class of the new link flair |
-> Text | The intended text label of the new link flair |
-> Bool | Whether the flair should be editable by users |
-> RedditT m () |
Add link flair to the subreddit-wide template for a subreddit that you moderate. Requires moderator privileges on the subreddit.