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), {