Skip to content

Commit 943dc19

Browse files
committed
fix(core): webhook delete query type, removeMember await
1 parent 1f9affd commit 943dc19

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/core/src/api/guild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ export class GuildsAPI {
12371237
userId: Snowflake,
12381238
{ auth, reason, signal }: Pick<RequestData, 'auth' | 'reason' | 'signal'> = {},
12391239
) {
1240-
return this.rest.delete(Routes.guildMember(guildId, userId), { auth, reason, signal });
1240+
await this.rest.delete(Routes.guildMember(guildId, userId), { auth, reason, signal });
12411241
}
12421242

12431243
/**

packages/core/src/api/webhook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
type RESTPostAPIWebhookWithTokenQuery,
1717
type RESTPostAPIWebhookWithTokenSlackQuery,
1818
type RESTPostAPIWebhookWithTokenWaitResult,
19+
type RESTDeleteAPIWebhookWithTokenMessageQuery,
1920
type Snowflake,
2021
} from 'discord-api-types/v10';
2122

@@ -259,7 +260,7 @@ export class WebhooksAPI {
259260
id: Snowflake,
260261
token: string,
261262
messageId: Snowflake,
262-
query: { thread_id?: Snowflake } = {},
263+
query: RESTDeleteAPIWebhookWithTokenMessageQuery = {},
263264
{ signal }: Pick<RequestData, 'signal'> = {},
264265
) {
265266
await this.rest.delete(Routes.webhookMessage(id, token, messageId), {

0 commit comments

Comments
 (0)