From d862280cdb837be7b0e0ac33eda41aef59dd30a4 Mon Sep 17 00:00:00 2001 From: alanfilho184 Date: Mon, 12 Aug 2024 02:21:41 -0300 Subject: [PATCH] v4.13.1 - Bug fix no botStatus --- package.json | 2 +- src/resources/scripts/botStatus.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 663886e..4bdcc6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kami", - "version": "4.13.0", + "version": "4.13.1", "description": "Um BOT para Discord com foco em ajudar em mesas de RPG online, tendo suas principais funções criar fichas e rolar dados.", "main": "index.js", "scripts": { diff --git a/src/resources/scripts/botStatus.js b/src/resources/scripts/botStatus.js index 1210609..8c353f3 100644 --- a/src/resources/scripts/botStatus.js +++ b/src/resources/scripts/botStatus.js @@ -125,20 +125,20 @@ module.exports = class botStatus { if (client.user.id == '716053210179043409') { client.shard.broadcastEval( - async c => { + async (c, ctx) => { const channel = c.channels.cache.get('772970777787236352'); if (channel) { const message = await channel.messages.fetch('772971275903303721'); if (message) { - message.edit({ embeds: [JSON.parse(JSON.stringify(info))] }); + message.edit({ embeds: [JSON.parse(ctx)] }); } else { return null; } } }, { - context: JSON.stringify(info) + context: JSON.stringify(botStatus) } ); } else {