From 60ff3d8a4005cc9aeb9c0861ac279aff4decd302 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 29 Dec 2021 22:48:05 +0500 Subject: [PATCH] why --- events/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/events/message.js b/events/message.js index 5e972dce..ffac3376 100644 --- a/events/message.js +++ b/events/message.js @@ -232,7 +232,7 @@ async function updateXp(msg, data) { xpCooldown[msg.author.id] = toWait; // Gets a random number between 10 and 5 - const won = client.functions.randomNum(5, 10); + const won = this.client.functions.randomNum(5, 10); const newXp = parseInt(points + won, 10);