diff --git a/deno/rest/v10/webhook.ts b/deno/rest/v10/webhook.ts index 6e7d8f61..84a019e2 100644 --- a/deno/rest/v10/webhook.ts +++ b/deno/rest/v10/webhook.ts @@ -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; }; /** diff --git a/deno/rest/v9/webhook.ts b/deno/rest/v9/webhook.ts index 1315f39a..06ae1d8c 100644 --- a/deno/rest/v9/webhook.ts +++ b/deno/rest/v9/webhook.ts @@ -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; }; /** diff --git a/rest/v10/webhook.ts b/rest/v10/webhook.ts index 6309633b..a013c578 100644 --- a/rest/v10/webhook.ts +++ b/rest/v10/webhook.ts @@ -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; }; /** diff --git a/rest/v9/webhook.ts b/rest/v9/webhook.ts index f5230ffc..cb92149e 100644 --- a/rest/v9/webhook.ts +++ b/rest/v9/webhook.ts @@ -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; }; /**