fix(core): webhook delete query type, removeMember await

This commit is contained in:
almeidx
2026-04-05 22:29:18 +01:00
parent 1f9affd979
commit 943dc19b45
2 changed files with 3 additions and 2 deletions

View File

@@ -1237,7 +1237,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 });
}
/**

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