Skip to content

Commit f770290

Browse files
authored
feat(RESTPatchAPIWebhookWithTokenMessageJSONBody): poll (#1067)
1 parent b4b70d8 commit f770290

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

deno/rest/v10/webhook.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
267267
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
268268
*/
269269
attachments?: RESTAPIAttachment[] | undefined;
270+
/**
271+
* A poll!
272+
*
273+
* @remarks
274+
* Polls can only be added when editing a deferred interaction response.
275+
*/
276+
poll?: RESTAPIPollCreate | undefined;
270277
};
271278

272279
/**

deno/rest/v9/webhook.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
267267
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
268268
*/
269269
attachments?: RESTAPIAttachment[] | undefined;
270+
/**
271+
* A poll!
272+
*
273+
* @remarks
274+
* Polls can only be added when editing a deferred interaction response.
275+
*/
276+
poll?: RESTAPIPollCreate | undefined;
270277
};
271278

272279
/**

rest/v10/webhook.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
267267
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
268268
*/
269269
attachments?: RESTAPIAttachment[] | undefined;
270+
/**
271+
* A poll!
272+
*
273+
* @remarks
274+
* Polls can only be added when editing a deferred interaction response.
275+
*/
276+
poll?: RESTAPIPollCreate | undefined;
270277
};
271278

272279
/**

rest/v9/webhook.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly
267267
* See https://discord.com/developers/docs/resources/message#attachment-object-attachment-structure
268268
*/
269269
attachments?: RESTAPIAttachment[] | undefined;
270+
/**
271+
* A poll!
272+
*
273+
* @remarks
274+
* Polls can only be added when editing a deferred interaction response.
275+
*/
276+
poll?: RESTAPIPollCreate | undefined;
270277
};
271278

272279
/**

0 commit comments

Comments
 (0)