Skip to content

Commit

Permalink
Add types to editMessage params
Browse files Browse the repository at this point in the history
  • Loading branch information
pakkographic committed Aug 6, 2024
1 parent ac044e8 commit 5bdf2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/Channels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export class Channels {
channelID: string,
messageID: string,
newMessage: EditMessageOptions,
params?: object
params?: MessageConstructorParams
): Promise<Message<T>> {
if (typeof newMessage !== "object") throw new Error("newMessage should be an object.");
return this.#manager.authRequest<POSTChannelMessageResponse>({
Expand Down

0 comments on commit 5bdf2f3

Please sign in to comment.