Safe Haskell | None |
---|---|
Language | Haskell2010 |
Webhook endpoints
Documentation
data WebhookRequest a where Source #
CreateWebhook :: HasID Channel c => c -> CreateWebhookData -> WebhookRequest Webhook | |
GetChannelWebhooks :: HasID Channel c => c -> WebhookRequest [Webhook] | |
GetGuildWebhooks :: HasID Guild c => c -> WebhookRequest [Webhook] | |
GetWebhook :: HasID Webhook w => w -> WebhookRequest Webhook | |
GetWebhookToken :: HasID Webhook w => w -> Text -> WebhookRequest Webhook | |
ModifyWebhook :: HasID Webhook w => w -> ModifyWebhookData -> WebhookRequest Webhook | |
ModifyWebhookToken :: HasID Webhook w => w -> Text -> ModifyWebhookData -> WebhookRequest Webhook | |
DeleteWebhook :: HasID Webhook w => w -> WebhookRequest () | |
DeleteWebhookToken :: HasID Webhook w => w -> Text -> WebhookRequest () | |
ExecuteWebhook :: HasID Webhook w => w -> Text -> ExecuteWebhookOptions -> WebhookRequest () |
Instances
Request (WebhookRequest a) Source # | |
Defined in Calamity.HTTP.Webhook type Result (WebhookRequest a) Source # route :: WebhookRequest a -> Route Source # action :: WebhookRequest a -> Url 'Https -> Option 'Https -> Req LbsResponse Source # modifyResponse :: WebhookRequest a -> Value -> Value Source # | |
type Result (WebhookRequest a) Source # | |
Defined in Calamity.HTTP.Webhook |
data CreateWebhookData Source #
Instances
data ModifyWebhookData Source #
Instances
data ExecuteWebhookOptions Source #
ExecuteWebhookOptions | |
|