Function: webhookToDiscordEmbed()
webhookToDiscordEmbed(
trigger
,payload
,messages
):undefined
| {author
:undefined
|Record
<"url"
|"icon_url"
|"name"
,string
>;color
:number
;title
:string
; }
Defined in: rest/v2/webhooks/platforms/discord.ts:50
Easily convert a Patreon webhook to a Discord embed
Parameters
trigger
The event from the Patreon webhook headers
payload
The incoming webhook payload from Patreon
messages
Partial
The options to convert webhook payloads to embed fields
Returns
undefined
| { author
: undefined
| Record
<"url"
| "icon_url"
| "name"
, string
>; color
: number
; title
: string
; }
Discord embeds that can be sent using webhooks. undefined
if no options are found for this trigger.