fix(RESTPostAPIWebhookWithTokenJSONBody): add missing components (#152)

This commit is contained in:
모메MoMe
2021-07-19 00:51:25 +09:00
committed by GitHub
parent 4a836293d5
commit ca933ae84d
2 changed files with 22 additions and 2 deletions

View File

@@ -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[];
}
/**

View File

@@ -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[];
}
/**