diff --git a/lib/routes/Channels.ts b/lib/routes/Channels.ts index 0bc1775..f0e676c 100644 --- a/lib/routes/Channels.ts +++ b/lib/routes/Channels.ts @@ -387,6 +387,7 @@ export class Channels { ): Promise> { if (typeof options !== "object") throw new Error("message options should be an object."); options.replyMessageIDs = [...new Set(options.replyMessageIDs)]; // Remove duplicates. + if (options.replyMessageIDs.length === 0) options.replyMessageIDs = undefined; return this.#manager.authRequest({ method: "POST", path: endpoints.CHANNEL_MESSAGES(channelID),