Skip to content

Commit

Permalink
fix(RESTPostAPIWebhookWithTokenJSONBody): add missing components (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
mome0320 committed Jul 18, 2021
1 parent 4a83629 commit ca933ae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion rest/v8/webhook.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -115,6 +121,10 @@ export interface RESTPostAPIWebhookWithTokenJSONBody {
* Allowed mentions for the message
*/
allowed_mentions?: APIAllowedMentions;
/**
* the components to include with the message
*/
components?: APIActionRowComponent[];
}

/**
Expand Down
12 changes: 11 additions & 1 deletion rest/v9/webhook.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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[];
}

/**
Expand Down

0 comments on commit ca933ae

Please sign in to comment.