Safe Haskell | None |
---|---|
Language | Haskell2010 |
Status
Contents
Synopsis
- editStatusFile :: UpdateStatusType -> ActivityType -> Text -> IO ()
- setStatusFromFile :: DiscordHandler ()
- updateStatus :: UpdateStatusType -> ActivityType -> Text -> DiscordHandler ()
Documentation
editStatusFile :: UpdateStatusType -> ActivityType -> Text -> IO () Source #
setStatusFromFile :: DiscordHandler () Source #
setStatusFromFile
reads "status.csv" from the Config directory, and
reads in the 3 columns as UpdateStatusType
, ActivityType
, and Text
.
The values are used to call updateStatus
.
Incorrect formats (read parse errors) are ignored.
updateStatus :: UpdateStatusType -> ActivityType -> Text -> DiscordHandler () Source #
updateStatus
updates the status through the Discord gateway.
Therefore, it requires DiscordHandler and is not polymorphic.
Orphan instances
Read ActivityType Source # | |
Methods readsPrec :: Int -> ReadS ActivityType # readList :: ReadS [ActivityType] # | |
Read UpdateStatusType Source # | These datatypes in discord-haskell do not derive Read, but it's kinda
necessary to do |
Methods readsPrec :: Int -> ReadS UpdateStatusType # readList :: ReadS [UpdateStatusType] # |