Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provide actions for User API interactions.
- data UserRequest a where
- GetCurrentUser :: UserRequest User
- GetUser :: Snowflake -> UserRequest User
- ModifyCurrentUser :: ToJSON a => a -> UserRequest User
- GetCurrentUserGuilds :: Range -> UserRequest Guild
- LeaveGuild :: Snowflake -> UserRequest ()
- GetUserDMs :: UserRequest [Channel]
- CreateDM :: Snowflake -> UserRequest Channel
Documentation
data UserRequest a where Source #
Data constructor for User requests. See User API
GetCurrentUser :: UserRequest User | Returns the |
GetUser :: Snowflake -> UserRequest User | Returns a |
ModifyCurrentUser :: ToJSON a => a -> UserRequest User | Modify the requestors user account settings. Returns a |
GetCurrentUserGuilds :: Range -> UserRequest Guild | Returns a list of user |
LeaveGuild :: Snowflake -> UserRequest () | Leave a guild. |
GetUserDMs :: UserRequest [Channel] | Returns a list of DM |
CreateDM :: Snowflake -> UserRequest Channel | Create a new DM channel with a user. Returns a DM |
Eq (UserRequest a) Source # | |
Hashable (UserRequest a) Source # | |
FromJSON a => DoFetch (UserRequest a) Source # | |
RateLimit (UserRequest a) Source # | |