mirror of
https://github.com/discordjs/discord.js.git
synced 2026-07-21 13:42:56 +00:00
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:
@@ -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 });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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), {
|
||||
|
||||
Reference in New Issue
Block a user