From 1c4a12c7d62d060d655668a81d0ff4f1ae95607a Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Fri, 19 May 2023 18:33:43 +0100 Subject: [PATCH] types: use `Snowflake` instead of `string` for snowflakes (#9583) fix: use `Snowflake` not `string` Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/core/src/api/guild.ts | 2 +- packages/core/src/api/webhook.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/api/guild.ts b/packages/core/src/api/guild.ts index 6eb7a5bd3..81aae5e1b 100644 --- a/packages/core/src/api/guild.ts +++ b/packages/core/src/api/guild.ts @@ -102,7 +102,7 @@ export class GuildsAPI { * @param guildId - The id of the guild * @param options - The options for fetching the guild */ - public async get(guildId: string, { signal }: Pick = {}) { + public async get(guildId: Snowflake, { signal }: Pick = {}) { return this.rest.get(Routes.guild(guildId), { signal }) as Promise; } diff --git a/packages/core/src/api/webhook.ts b/packages/core/src/api/webhook.ts index 288c56a51..2b8ed3e4e 100644 --- a/packages/core/src/api/webhook.ts +++ b/packages/core/src/api/webhook.ts @@ -272,7 +272,7 @@ export class WebhooksAPI { id: Snowflake, token: string, messageId: Snowflake, - query: { thread_id?: string } = {}, + query: { thread_id?: Snowflake } = {}, { signal }: Pick = {}, ) { await this.rest.delete(Routes.webhookMessage(id, token, messageId), {