feat(Channel): add embeds to post / patch (#143)

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
ckohen
2021-06-15 15:51:43 -07:00
committed by GitHub
parent d2b6276119
commit 13d483ef2e
4 changed files with 44 additions and 0 deletions

View File

@@ -176,6 +176,12 @@ export interface RESTPostAPIChannelMessageJSONBody {
* `true` if this is a TTS message
*/
tts?: boolean;
/**
* Embedded `rich` content (up to 6000 characters)
*
* See https://discord.com/developers/docs/resources/channel#embed-object
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
*
@@ -281,6 +287,10 @@ export interface RESTPatchAPIChannelMessageJSONBody {
* The new message contents (up to 2000 characters)
*/
content?: string | null;
/**
* Embedded `rich` content (up to 6000 characters)
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
*/

View File

@@ -203,10 +203,17 @@ export interface RESTPostAPIChannelMessageJSONBody {
* `true` if this is a TTS message
*/
tts?: boolean;
/**
* Embedded `rich` content (up to 6000 characters)
*
* See https://discord.com/developers/docs/resources/channel#embed-object
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
*
* See https://discord.com/developers/docs/resources/channel#embed-object
* @deprecated Use `embeds` instead
*/
embed?: APIEmbed;
/**
@@ -308,8 +315,13 @@ export interface RESTPatchAPIChannelMessageJSONBody {
* The new message contents (up to 2000 characters)
*/
content?: string | null;
/**
* Embedded `rich` content (up to 6000 characters)
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
* @deprecated Use `embeds` instead
*/
embed?: APIEmbed | null;
/**

View File

@@ -176,6 +176,12 @@ export interface RESTPostAPIChannelMessageJSONBody {
* `true` if this is a TTS message
*/
tts?: boolean;
/**
* Embedded `rich` content (up to 6000 characters)
*
* See https://discord.com/developers/docs/resources/channel#embed-object
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
*
@@ -281,6 +287,10 @@ export interface RESTPatchAPIChannelMessageJSONBody {
* The new message contents (up to 2000 characters)
*/
content?: string | null;
/**
* Embedded `rich` content (up to 6000 characters)
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
*/

View File

@@ -203,10 +203,17 @@ export interface RESTPostAPIChannelMessageJSONBody {
* `true` if this is a TTS message
*/
tts?: boolean;
/**
* Embedded `rich` content (up to 6000 characters)
*
* See https://discord.com/developers/docs/resources/channel#embed-object
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
*
* See https://discord.com/developers/docs/resources/channel#embed-object
* @deprecated Use `embeds` instead
*/
embed?: APIEmbed;
/**
@@ -308,8 +315,13 @@ export interface RESTPatchAPIChannelMessageJSONBody {
* The new message contents (up to 2000 characters)
*/
content?: string | null;
/**
* Embedded `rich` content (up to 6000 characters)
*/
embeds?: APIEmbed[];
/**
* Embedded `rich` content
* @deprecated Use `embeds` instead
*/
embed?: APIEmbed | null;
/**