Safe Haskell | None |
---|---|
Language | Haskell2010 |
Discord.Internal.Rest.Webhook
Description
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 #
Constructors
CreateWebhookOpts | |
Fields |
Instances
ToJSON CreateWebhookOpts Source # | |
Defined in Discord.Internal.Rest.Webhook Methods toJSON :: CreateWebhookOpts -> Value # toEncoding :: CreateWebhookOpts -> Encoding # toJSONList :: [CreateWebhookOpts] -> Value # toEncodingList :: [CreateWebhookOpts] -> Encoding # |
data ExecuteWebhookWithTokenOpts Source #
Constructors
ExecuteWebhookWithTokenOpts | |
Instances
data ModifyWebhookOpts Source #
Constructors
ModifyWebhookOpts | |
Instances
ToJSON ModifyWebhookOpts Source # | |
Defined in Discord.Internal.Rest.Webhook Methods toJSON :: ModifyWebhookOpts -> Value # toEncoding :: ModifyWebhookOpts -> Encoding # toJSONList :: [ModifyWebhookOpts] -> Value # toEncodingList :: [ModifyWebhookOpts] -> Encoding # |
data WebhookContent Source #
Constructors
WebhookContentText Text | |
WebhookContentFile Text ByteString | |
WebhookContentEmbeds [CreateEmbed] |
Instances
Eq WebhookContent Source # | |
Defined in Discord.Internal.Rest.Webhook Methods (==) :: WebhookContent -> WebhookContent -> Bool # (/=) :: WebhookContent -> WebhookContent -> Bool # | |
Ord WebhookContent Source # | |
Defined in Discord.Internal.Rest.Webhook Methods 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 Methods showsPrec :: Int -> WebhookContent -> ShowS # show :: WebhookContent -> String # showList :: [WebhookContent] -> ShowS # |
data WebhookRequest a where Source #
Data constructor for requests. See API
Constructors
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 Methods majorRoute :: WebhookRequest a -> String Source # jsonRequest :: WebhookRequest a -> JsonRequest Source # |