Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides actions for Webhook API interactions
Synopsis
- data CreateWebhookOpts = CreateWebhookOpts {}
- data ExecuteWebhookWithTokenOpts = ExecuteWebhookWithTokenOpts {}
- data ModifyWebhookOpts = ModifyWebhookOpts {}
- data WebhookContent
- data WebhookRequest a where
- CreateWebhook :: ChannelId -> CreateWebhookOpts -> WebhookRequest Webhook
- GetChannelWebhooks :: ChannelId -> WebhookRequest [Webhook]
- GetGuildWebhooks :: GuildId -> WebhookRequest [Webhook]
- GetWebhook :: WebhookId -> WebhookRequest Webhook
- GetWebhookWithToken :: WebhookId -> Text -> WebhookRequest Webhook
- ModifyWebhook :: WebhookId -> ModifyWebhookOpts -> WebhookRequest Webhook
- ModifyWebhookWithToken :: WebhookId -> Text -> ModifyWebhookOpts -> WebhookRequest Webhook
- DeleteWebhook :: WebhookId -> WebhookRequest ()
- DeleteWebhookWithToken :: WebhookId -> Text -> WebhookRequest ()
- ExecuteWebhookWithToken :: WebhookId -> Text -> ExecuteWebhookWithTokenOpts -> WebhookRequest ()
Documentation
data CreateWebhookOpts Source #
Instances
ToJSON CreateWebhookOpts Source # | |
Defined in Discord.Internal.Rest.Webhook toJSON :: CreateWebhookOpts -> Value # toEncoding :: CreateWebhookOpts -> Encoding # toJSONList :: [CreateWebhookOpts] -> Value # toEncodingList :: [CreateWebhookOpts] -> Encoding # |
data ExecuteWebhookWithTokenOpts Source #
Instances
data ModifyWebhookOpts Source #
Instances
ToJSON ModifyWebhookOpts Source # | |
Defined in Discord.Internal.Rest.Webhook toJSON :: ModifyWebhookOpts -> Value # toEncoding :: ModifyWebhookOpts -> Encoding # toJSONList :: [ModifyWebhookOpts] -> Value # toEncodingList :: [ModifyWebhookOpts] -> Encoding # |
data WebhookContent Source #
Instances
Eq WebhookContent Source # | |
Defined in Discord.Internal.Rest.Webhook (==) :: WebhookContent -> WebhookContent -> Bool # (/=) :: WebhookContent -> WebhookContent -> Bool # | |
Ord WebhookContent Source # | |
Defined in Discord.Internal.Rest.Webhook compare :: WebhookContent -> WebhookContent -> Ordering # (<) :: WebhookContent -> WebhookContent -> Bool # (<=) :: WebhookContent -> WebhookContent -> Bool # (>) :: WebhookContent -> WebhookContent -> Bool # (>=) :: WebhookContent -> WebhookContent -> Bool # max :: WebhookContent -> WebhookContent -> WebhookContent # min :: WebhookContent -> WebhookContent -> WebhookContent # | |
Show WebhookContent Source # | |
Defined in Discord.Internal.Rest.Webhook showsPrec :: Int -> WebhookContent -> ShowS # show :: WebhookContent -> String # showList :: [WebhookContent] -> ShowS # |
data WebhookRequest a where Source #
Data constructor for requests. See API
CreateWebhook :: ChannelId -> CreateWebhookOpts -> WebhookRequest Webhook | |
GetChannelWebhooks :: ChannelId -> WebhookRequest [Webhook] | |
GetGuildWebhooks :: GuildId -> WebhookRequest [Webhook] | |
GetWebhook :: WebhookId -> WebhookRequest Webhook | |
GetWebhookWithToken :: WebhookId -> Text -> WebhookRequest Webhook | |
ModifyWebhook :: WebhookId -> ModifyWebhookOpts -> WebhookRequest Webhook | |
ModifyWebhookWithToken :: WebhookId -> Text -> ModifyWebhookOpts -> WebhookRequest Webhook | |
DeleteWebhook :: WebhookId -> WebhookRequest () | |
DeleteWebhookWithToken :: WebhookId -> Text -> WebhookRequest () | |
ExecuteWebhookWithToken :: WebhookId -> Text -> ExecuteWebhookWithTokenOpts -> WebhookRequest () |
Instances
Request (WebhookRequest a) Source # | |
Defined in Discord.Internal.Rest.Webhook majorRoute :: WebhookRequest a -> String Source # jsonRequest :: WebhookRequest a -> JsonRequest Source # |