Safe Haskell | None |
---|---|
Language | Haskell2010 |
User endpoints
Documentation
data UserRequest a where Source #
GetCurrentUser :: UserRequest User | |
GetUser :: HasID User u => u -> UserRequest User | |
ModifyCurrentUser :: ModifyUserData -> UserRequest User | |
GetCurrentUserGuilds :: GetCurrentUserGuildsOptions -> UserRequest [Partial Guild] | |
LeaveGuild :: HasID Guild g => g -> UserRequest () | |
CreateDM :: HasID User u => u -> UserRequest DMChannel |
Instances
Request (UserRequest a) Source # | |
Defined in Calamity.HTTP.User type Result (UserRequest a) Source # route :: UserRequest a -> Route Source # action :: UserRequest a -> Url 'Https -> Option 'Https -> Req LbsResponse Source # modifyResponse :: UserRequest a -> Value -> Value Source # | |
type Result (UserRequest a) Source # | |
Defined in Calamity.HTTP.User |
data ModifyUserData Source #
Instances
data GetCurrentUserGuildsOptions Source #