From 1443dad154e5db6e582818bff10a36e2ac4dda42 Mon Sep 17 00:00:00 2001 From: pakkographic <41129374+pakkographic@users.noreply.github.com> Date: Sun, 7 Jul 2024 17:57:26 +0200 Subject: [PATCH] typed property newMesage on editMessage Client replica --- lib/structures/Client.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/structures/Client.ts b/lib/structures/Client.ts index 0dc2b41..e1819f7 100644 --- a/lib/structures/Client.ts +++ b/lib/structures/Client.ts @@ -86,7 +86,8 @@ import { AnyTextableChannel, CreateChannelOptions, CreateMessageOptions, - EditChannelOptions + EditChannelOptions, + EditMessageOptions } from "../types/channel"; import { CreateForumThreadOptions, EditForumThreadOptions, GetForumThreadsFilter } from "../types/forumThread"; import { CreateForumCommentOptions, EditForumCommentOptions } from "../types/forumThreadComment"; @@ -612,7 +613,7 @@ export class Client extends TypedEmitter { async editMessage( channelID: string, messageID: string, - newMessage: object + newMessage: EditMessageOptions ): Promise> { return this.rest.channels.editMessage(channelID, messageID, newMessage); }