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 -> Options -> String -> IO (Response ByteString) Source # invoke :: forall (r :: [(Type -> Type) -> Type -> Type]). (BotC r, FromJSON (Result (UserRequest a))) => UserRequest a -> Sem r (Either RestError (Result (UserRequest a))) Source # | |
type Result (UserRequest a) Source # | |
Defined in Calamity.HTTP.User |
data ModifyUserData Source #
Instances
data GetCurrentUserGuildsOptions Source #