| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Reddit.Actions.Message
Description
Contains message-related actions, like retrieving your own inbox and sending other users private messages.
Synopsis
- getInbox :: Monad m => RedditT m (Listing MessageKind Message)
- getInbox' :: Monad m => Bool -> Options MessageKind -> RedditT m (Listing MessageKind Message)
- getUnread :: Monad m => RedditT m (Listing MessageKind Message)
- getUnread' :: Monad m => Bool -> Options MessageKind -> RedditT m (Listing MessageKind Message)
- markRead :: (ToQuery a, Thing a, Monad m) => a -> RedditT m ()
- sendMessage :: Monad m => Username -> Text -> Text -> RedditT m ()
- sendMessageWithCaptcha :: Monad m => Username -> Text -> Text -> CaptchaID -> Text -> RedditT m ()
- replyMessage :: (Monad m, Thing a) => a -> Text -> RedditT m MessageID
Documentation
getInbox :: Monad m => RedditT m (Listing MessageKind Message) Source #
Get the message inbox for the current user.
getInbox' :: Monad m => Bool -> Options MessageKind -> RedditT m (Listing MessageKind Message) Source #
Don't use this for watching for new messages, Reddit's ordering on | inbox messages is odd and not likely to work how you expect.
getUnread :: Monad m => RedditT m (Listing MessageKind Message) Source #
Get any unread messages for the current user.
Arguments
| :: Monad m | |
| => Bool | Whether the orangered notifier should be marked "off" |
| -> Options MessageKind | |
| -> RedditT m (Listing MessageKind Message) |
Get unread messages for the current user, with options.
Arguments
| :: Monad m | |
| => Username | The username to send the message to |
| -> Text | The subject of the message being sent |
| -> Text | The body of the message being sent |
| -> RedditT m () |
Send a private message to another user.
sendMessageWithCaptcha Source #
Arguments
| :: Monad m | |
| => Username | The username to send the message to |
| -> Text | The subject of the message being sent |
| -> Text | The body of the message being sent |
| -> CaptchaID | The identifier of the captcha being answered |
| -> Text | The answer to the specified captcha |
| -> RedditT m () |
Send a private message (with a captcha).