mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-04 09:50:09 +00:00
feat(Channel): add embeds to post / patch (#143)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user