diff --git a/index.d.ts b/index.d.ts index f3bbd43..2421ab3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -525,6 +525,8 @@ declare namespace WAWebJS { broadcast: boolean, /** Indicates if the message was a status update */ isStatus: boolean, + /** Indicates if the message is a Gif */ + isGif: boolean, /** ID for the Chat that this message was sent to, except if the message was sent by the current user */ from: string, /** Indicates if the message was sent by the current user */ diff --git a/src/structures/Message.js b/src/structures/Message.js index 0ff7c05..9bbdae2 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -179,6 +179,12 @@ class Message extends Base { */ this.token = data.token ? data.token : undefined; + /** + * Indicates whether the message is a Gif + * @type {boolean} + */ + this.isGif = Boolean(data.isGif); + /** Title */ if (data.title) { this.title = data.title;