mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
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:
@@ -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), {
|
||||||
|
|||||||
Reference in New Issue
Block a user