From 6a4fca0a778ee3fd9b2629a80bd771df9d8e77de Mon Sep 17 00:00:00 2001 From: Nowbie S <33182389+NowDev@users.noreply.github.com> Date: Tue, 9 Aug 2022 12:24:43 -0300 Subject: [PATCH] updating forward documentation. (#1624) * updating forward documentation. * Update Message.js * Update index.d.ts * Update docs/Message.html Co-authored-by: Rajeh Taher --- index.d.ts | 2 +- src/structures/Message.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 7450208..8759f5c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -708,7 +708,7 @@ declare namespace WAWebJS { /** React to this message with an emoji*/ react: (reaction: string) => Promise, /** - * Forwards this message to another chat + * Forwards this message to another chat (that you chatted before, otherwise it will fail) */ forward: (chat: Chat | string) => Promise, /** Star this message */ diff --git a/src/structures/Message.js b/src/structures/Message.js index 94893cc..77a8e89 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -356,7 +356,7 @@ class Message extends Base { } /** - * Forwards this message to another chat + * Forwards this message to another chat (that you chatted before, otherwise it will fail) * * @param {string|Chat} chat Chat model or chat ID to which the message will be forwarded * @returns {Promise}