* Minimal typing of the Discord embed subset we produce. @see https://discord.com/developers/docs/resources/message#embed-object /
// Source: https://github.com/argos-ci/argos | License: MIT | Copyright 2017 Olivier Tassinari & Greg Bergé
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Minimal typing of the Discord embed subset we produce.
* @see https://discord.com/developers/docs/resources/message#embed-object
*/
export type DiscordEmbedField = {
name: string;
value: string;
inline?: boolean;
};
export type DiscordEmbed = {
title?: string;
url?: string;
description?: string;
color?: number;
author?: { name: string };
fields?: DiscordEmbedField[];
footer?: { text: string };
};
/**
* Body expected by `POST /api/webhooks/:id/:token`.
*
* `username` overrides the name the webhook was created with, so the message
* reads as coming from Argos whatever the user called th
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key