Skip to content

Commit

Permalink
v4.13.1 - Bug fix no botStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
alanfilho184 committed Aug 12, 2024
1 parent b77e949 commit d862280
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/resources/scripts/botStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d862280

Please sign in to comment.