Skip to content

Commit

Permalink
feat(RESTPatchAPIWebhookWithTokenMessageJSONBody): poll (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Sep 5, 2024
1 parent b4b70d8 commit f770290
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deno/rest/v10/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
*/
attachments?: RESTAPIAttachment[] | undefined;
/**
* A poll!
*
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;
};

/**
Expand Down
7 changes: 7 additions & 0 deletions deno/rest/v9/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
*/
attachments?: RESTAPIAttachment[] | undefined;
/**
* A poll!
*
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;
};

/**
Expand Down
7 changes: 7 additions & 0 deletions rest/v10/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
*/
attachments?: RESTAPIAttachment[] | undefined;
/**
* A poll!
*
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;

Check failure on line 276 in rest/v10/webhook.ts

View workflow job for this annotation

GitHub Actions / ESLint and TypeScript compilation

Cannot find name 'RESTAPIPollCreate'.
};

/**
Expand Down
7 changes: 7 additions & 0 deletions rest/v9/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
*/
attachments?: RESTAPIAttachment[] | undefined;
/**
* A poll!
*
* @remarks
* Polls can only be added when editing a deferred interaction response.
*/
poll?: RESTAPIPollCreate | undefined;

Check failure on line 276 in rest/v9/webhook.ts

View workflow job for this annotation

GitHub Actions / ESLint and TypeScript compilation

Cannot find name 'RESTAPIPollCreate'.
};

/**
Expand Down

0 comments on commit f770290

Please sign in to comment.