From d3b5187c77f845eba29ab56de41408bcea7e9cb4 Mon Sep 17 00:00:00 2001 From: Danial Raza Date: Thu, 5 Sep 2024 18:01:05 +0200 Subject: [PATCH] fix: replace deprecated `RESTAPIPollCreate` with `RESTAPIPoll` (#1091) --- deno/rest/v10/webhook.ts | 2 +- deno/rest/v9/webhook.ts | 2 +- rest/v10/webhook.ts | 2 +- rest/v9/webhook.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno/rest/v10/webhook.ts b/deno/rest/v10/webhook.ts index 84a019e25..925bb340c 100644 --- a/deno/rest/v10/webhook.ts +++ b/deno/rest/v10/webhook.ts @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly * @remarks * Polls can only be added when editing a deferred interaction response. */ - poll?: RESTAPIPollCreate | undefined; + poll?: RESTAPIPoll | undefined; }; /** diff --git a/deno/rest/v9/webhook.ts b/deno/rest/v9/webhook.ts index 06ae1d8cf..3e2847bf7 100644 --- a/deno/rest/v9/webhook.ts +++ b/deno/rest/v9/webhook.ts @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly * @remarks * Polls can only be added when editing a deferred interaction response. */ - poll?: RESTAPIPollCreate | undefined; + poll?: RESTAPIPoll | undefined; }; /** diff --git a/rest/v10/webhook.ts b/rest/v10/webhook.ts index a013c578f..9dfd682c7 100644 --- a/rest/v10/webhook.ts +++ b/rest/v10/webhook.ts @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly * @remarks * Polls can only be added when editing a deferred interaction response. */ - poll?: RESTAPIPollCreate | undefined; + poll?: RESTAPIPoll | undefined; }; /** diff --git a/rest/v9/webhook.ts b/rest/v9/webhook.ts index cb92149ed..7afc8b399 100644 --- a/rest/v9/webhook.ts +++ b/rest/v9/webhook.ts @@ -273,7 +273,7 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = AddUndefinedToPossibly * @remarks * Polls can only be added when editing a deferred interaction response. */ - poll?: RESTAPIPollCreate | undefined; + poll?: RESTAPIPoll | undefined; }; /**