From 2de90a767433f35832c25a44a84603981fbe9f64 Mon Sep 17 00:00:00 2001 From: Almeida Date: Mon, 20 Jul 2026 12:28:46 +0100 Subject: [PATCH] fix(core): webhook delete query type, removeMember await (#11483) Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> 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 | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/api/guild.ts b/packages/core/src/api/guild.ts index 7eaa12721..1c77ffc7f 100644 --- a/packages/core/src/api/guild.ts +++ b/packages/core/src/api/guild.ts @@ -1259,7 +1259,7 @@ export class GuildsAPI { userId: Snowflake, { auth, reason, signal }: Pick = {}, ) { - return this.rest.delete(Routes.guildMember(guildId, userId), { auth, reason, signal }); + await this.rest.delete(Routes.guildMember(guildId, userId), { auth, reason, signal }); } /** diff --git a/packages/core/src/api/webhook.ts b/packages/core/src/api/webhook.ts index de44868e3..e0557c1db 100644 --- a/packages/core/src/api/webhook.ts +++ b/packages/core/src/api/webhook.ts @@ -16,6 +16,7 @@ import { type RESTPostAPIWebhookWithTokenQuery, type RESTPostAPIWebhookWithTokenSlackQuery, type RESTPostAPIWebhookWithTokenWaitResult, + type RESTDeleteAPIWebhookWithTokenMessageQuery, type Snowflake, } from 'discord-api-types/v10'; @@ -259,7 +260,7 @@ export class WebhooksAPI { id: Snowflake, token: string, messageId: Snowflake, - query: { thread_id?: Snowflake } = {}, + query: RESTDeleteAPIWebhookWithTokenMessageQuery = {}, { signal }: Pick = {}, ) { await this.rest.delete(Routes.webhookMessage(id, token, messageId), {