Safe Haskell | None |
---|---|
Language | Haskell2010 |
Guild endpoints
Documentation
data GuildRequest a where Source #
CreateGuild :: CreateGuildData -> GuildRequest Guild | |
GetGuild :: HasID Guild g => g -> GuildRequest Guild | |
ModifyGuild :: HasID Guild g => g -> ModifyGuildData -> GuildRequest Guild |
Instances
Request (GuildRequest a) a Source # | |
Defined in Calamity.HTTP.Guild toRoute :: GuildRequest a -> Route Source # url :: GuildRequest a -> String Source # toAction :: GuildRequest a -> Options -> String -> IO (Response ByteString) Source # invokeRequest :: forall (reffs :: [(Type -> Type) -> Type -> Type]). (BotC reffs, FromJSON a) => GuildRequest a -> Sem reffs (Either RestError a) Source # |
data CreateGuildData Source #
Instances
data ModifyGuildData Source #
ModifyGuildData | |
|