types(ChannelsAPI): use correct type for editMessage (#9399)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Aura Román
2023-04-16 20:27:16 +02:00
committed by GitHub
parent 5dcc6df224
commit 0a1701b046

View File

@@ -13,6 +13,7 @@ import {
type RESTGetAPIChannelThreadsArchivedQuery, type RESTGetAPIChannelThreadsArchivedQuery,
type RESTGetAPIChannelUsersThreadsArchivedResult, type RESTGetAPIChannelUsersThreadsArchivedResult,
type RESTGetAPIChannelWebhooksResult, type RESTGetAPIChannelWebhooksResult,
type RESTPatchAPIChannelMessageJSONBody,
type RESTPatchAPIChannelJSONBody, type RESTPatchAPIChannelJSONBody,
type RESTPatchAPIChannelMessageResult, type RESTPatchAPIChannelMessageResult,
type RESTPatchAPIChannelResult, type RESTPatchAPIChannelResult,
@@ -60,7 +61,7 @@ export class ChannelsAPI {
public async editMessage( public async editMessage(
channelId: Snowflake, channelId: Snowflake,
messageId: Snowflake, messageId: Snowflake,
{ files, ...body }: RESTPostAPIChannelMessageJSONBody & { files?: RawFile[] }, { files, ...body }: RESTPatchAPIChannelMessageJSONBody & { files?: RawFile[] },
{ signal }: Pick<RequestData, 'signal'> = {}, { signal }: Pick<RequestData, 'signal'> = {},
) { ) {
return this.rest.patch(Routes.channelMessage(channelId, messageId), { return this.rest.patch(Routes.channelMessage(channelId, messageId), {