mirror of
https://github.com/discordjs/discord.js.git
synced 2026-05-21 02:40:07 +00:00
fix(core): webhook delete query type, removeMember await
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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