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

Safe HaskellNone
LanguageHaskell2010

Reddit.Actions.Thing

Description

Contains actions which are applicable to both Posts and Comments, like replying, deleting and reporting.

Synopsis

Documentation

reply Source

Arguments

:: (MonadIO m, Thing a) 
=> a

Thing to reply to

-> Text

Response contents

-> RedditT m CommentID 

Reply to a something (a post / comment / message)

delete Source

Arguments

:: (MonadIO m, Thing a) 
=> a

Thing to delete

-> RedditT m () 

Delete something you created. Note that this is different to removing a post / comment as a moderator action. Deleting something you don't own won't error (but naturally won't delete anything either).

report Source

Arguments

:: (MonadIO m, Thing a) 
=> a

Thing to report

-> Text

Reason for reporting

-> RedditT m () 

Report something.