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,
|
userId: Snowflake,
|
||||||
{ auth, reason, signal }: Pick<RequestData, 'auth' | 'reason' | 'signal'> = {},
|
{ 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 RESTPostAPIWebhookWithTokenQuery,
|
||||||
type RESTPostAPIWebhookWithTokenSlackQuery,
|
type RESTPostAPIWebhookWithTokenSlackQuery,
|
||||||
type RESTPostAPIWebhookWithTokenWaitResult,
|
type RESTPostAPIWebhookWithTokenWaitResult,
|
||||||
|
type RESTDeleteAPIWebhookWithTokenMessageQuery,
|
||||||
type Snowflake,
|
type Snowflake,
|
||||||
} from 'discord-api-types/v10';
|
} from 'discord-api-types/v10';
|
||||||
|
|
||||||
@@ -259,7 +260,7 @@ export class WebhooksAPI {
|
|||||||
id: Snowflake,
|
id: Snowflake,
|
||||||
token: string,
|
token: string,
|
||||||
messageId: Snowflake,
|
messageId: Snowflake,
|
||||||
query: { thread_id?: Snowflake } = {},
|
query: RESTDeleteAPIWebhookWithTokenMessageQuery = {},
|
||||||
{ signal }: Pick<RequestData, 'signal'> = {},
|
{ signal }: Pick<RequestData, 'signal'> = {},
|
||||||
) {
|
) {
|
||||||
await this.rest.delete(Routes.webhookMessage(id, token, messageId), {
|
await this.rest.delete(Routes.webhookMessage(id, token, messageId), {
|
||||||
|
|||||||
Reference in New Issue
Block a user