From 2702757dce6a43964f45097d1a548b0f316b6fd9 Mon Sep 17 00:00:00 2001 From: Antoine Schaller Date: Tue, 16 Feb 2021 03:24:07 +0100 Subject: [PATCH] fix: star() & unstar() functions (#547) --- src/structures/Message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 4ee02ce..82cd9d3 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -291,7 +291,7 @@ class Message extends Base { * Stars this message */ async star() { - await this.pupPage.evaluate((msgId) => { + await this.client.pupPage.evaluate((msgId) => { let msg = window.Store.Msg.get(msgId); if (msg.canStar()) { @@ -304,7 +304,7 @@ class Message extends Base { * Unstars this message */ async unstar() { - await this.pupPage.evaluate((msgId) => { + await this.client.pupPage.evaluate((msgId) => { let msg = window.Store.Msg.get(msgId); if (msg.canStar()) {