diff --git a/events/message.js b/events/message.js index ffac3376..5e972dce 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 = this.client.functions.randomNum(5, 10); + const won = client.functions.randomNum(5, 10); const newXp = parseInt(points + won, 10);