Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains message-related actions, like retrieving your own inbox and sending other users private messages.
- getInbox :: MonadIO m => RedditT m (Listing MessageKind Message)
- getInbox' :: MonadIO m => Bool -> Options MessageKind -> RedditT m (Listing MessageKind Message)
- getUnread :: MonadIO m => RedditT m (Listing MessageKind Message)
- getUnread' :: MonadIO m => Bool -> Options MessageKind -> RedditT m (Listing MessageKind Message)
- markRead :: (ToQuery a, Thing a, MonadIO m) => a -> RedditT m ()
- sendMessage :: MonadIO m => Username -> Text -> Text -> RedditT m ()
- sendMessageWithCaptcha :: MonadIO m => Username -> Text -> Text -> CaptchaID -> Text -> RedditT m ()
Documentation
getInbox :: MonadIO m => RedditT m (Listing MessageKind Message) Source
Get the message inbox for the current user.
getInbox' :: MonadIO 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 :: MonadIO m => RedditT m (Listing MessageKind Message) Source
Get any unread messages for the current user.
:: MonadIO 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.
:: MonadIO 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.