diff --git a/packages/core/src/api/guild.ts b/packages/core/src/api/guild.ts index 0bd87f41d..f372caef7 100644 --- a/packages/core/src/api/guild.ts +++ b/packages/core/src/api/guild.ts @@ -1237,7 +1237,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), {