mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-06-01 00:10:09 +00:00
fix(RESTPostAPIWebhookWithTokenJSONBody): add missing components (#152)
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user