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>
This commit is contained in:
Almeida
2026-07-20 12:28:46 +01:00
committed by GitHub
parent 2037593d8d
commit 2de90a7674
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1259,7 +1259,7 @@ export class GuildsAPI {
userId: Snowflake,
{ auth, reason, signal }: Pick<RequestData, 'auth' | 'reason' | 'signal'> = {},
) {
return this.rest.delete(Routes.guildMember(guildId, userId), { auth, reason, signal });
await this.rest.delete(Routes.guildMember(guildId, userId), { auth, reason, signal });
}
/**
+2 -1
View File
@@ -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<RequestData, 'signal'> = {},
) {
await this.rest.delete(Routes.webhookMessage(id, token, messageId), {