Skip to content

Commit

Permalink
feat(Channel): add embeds to post / patch (#143)
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
  • Loading branch information
ckohen and vladfrangu committed Jun 15, 2021
1 parent d2b6276 commit 13d483e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deno/rest/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*/
Expand Down
12 changes: 12 additions & 0 deletions deno/rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
/**
Expand Down
10 changes: 10 additions & 0 deletions rest/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*/
Expand Down
12 changes: 12 additions & 0 deletions rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
/**
Expand Down

0 comments on commit 13d483e

Please sign in to comment.