From 0a1701b0463919a895c518e5daa9836760d9b6cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aura=20Rom=C3=A1n?= Date: Sun, 16 Apr 2023 20:27:16 +0200 Subject: [PATCH] types(ChannelsAPI): use correct type for `editMessage` (#9399) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/core/src/api/channel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/api/channel.ts b/packages/core/src/api/channel.ts index ae18a00db..10c361b6c 100644 --- a/packages/core/src/api/channel.ts +++ b/packages/core/src/api/channel.ts @@ -13,6 +13,7 @@ import { type RESTGetAPIChannelThreadsArchivedQuery, type RESTGetAPIChannelUsersThreadsArchivedResult, type RESTGetAPIChannelWebhooksResult, + type RESTPatchAPIChannelMessageJSONBody, type RESTPatchAPIChannelJSONBody, type RESTPatchAPIChannelMessageResult, type RESTPatchAPIChannelResult, @@ -60,7 +61,7 @@ export class ChannelsAPI { public async editMessage( channelId: Snowflake, messageId: Snowflake, - { files, ...body }: RESTPostAPIChannelMessageJSONBody & { files?: RawFile[] }, + { files, ...body }: RESTPatchAPIChannelMessageJSONBody & { files?: RawFile[] }, { signal }: Pick = {}, ) { return this.rest.patch(Routes.channelMessage(channelId, messageId), {