diff --git a/rest/v8/webhook.ts b/rest/v8/webhook.ts index 23adc8a0..45d33168 100644 --- a/rest/v8/webhook.ts +++ b/rest/v8/webhook.ts @@ -1,5 +1,11 @@ import type { Snowflake } from '../../globals'; -import type { APIAllowedMentions, APIEmbed, APIMessage, APIWebhook } from '../../payloads/v8/index'; +import type { + APIAllowedMentions, + APIActionRowComponent, + APIEmbed, + APIMessage, + APIWebhook, +} from '../../payloads/v8/index'; /** * https://discord.com/developers/docs/resources/webhook#create-webhook @@ -115,6 +121,10 @@ export interface RESTPostAPIWebhookWithTokenJSONBody { * Allowed mentions for the message */ allowed_mentions?: APIAllowedMentions; + /** + * the components to include with the message + */ + components?: APIActionRowComponent[]; } /** diff --git a/rest/v9/webhook.ts b/rest/v9/webhook.ts index fa5a6cf3..8a453be0 100644 --- a/rest/v9/webhook.ts +++ b/rest/v9/webhook.ts @@ -1,5 +1,11 @@ import type { Snowflake } from '../../globals'; -import type { APIAllowedMentions, APIEmbed, APIMessage, APIWebhook } from '../../payloads/v9/index'; +import type { + APIAllowedMentions, + APIActionRowComponent, + APIEmbed, + APIMessage, + APIWebhook, +} from '../../payloads/v9/index'; /** * https://discord.com/developers/docs/resources/webhook#create-webhook @@ -119,6 +125,10 @@ export interface RESTPostAPIWebhookWithTokenJSONBody { * The thread to post this message in */ thread_id?: Snowflake; + /** + * the components to include with the message + */ + components?: APIActionRowComponent[]; } /**