From f7702907172f84b57175b6f6c80eb2de210f6a7b Mon Sep 17 00:00:00 2001 From: Almeida Date: Thu, 5 Sep 2024 16:29:38 +0100 Subject: [PATCH] feat(RESTPatchAPIWebhookWithTokenMessageJSONBody): `poll` (#1067) --- deno/rest/v10/webhook.ts | 7 +++++++ deno/rest/v9/webhook.ts | 7 +++++++ rest/v10/webhook.ts | 7 +++++++ rest/v9/webhook.ts | 7 +++++++ 4 files changed, 28 insertions(+) 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; }; /**