From af8a4f1e3a989a9bb5260f08f7808895e2c9ecd4 Mon Sep 17 00:00:00 2001 From: alanfilho184 Date: Mon, 12 Aug 2024 16:11:51 -0300 Subject: [PATCH] v4.13.4 - Bug fix no button_roll --- package.json | 2 +- src/commands/rpg/button_roll.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 91e1afc..c090757 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kami", - "version": "4.13.3", + "version": "4.13.4", "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/commands/rpg/button_roll.js b/src/commands/rpg/button_roll.js index 8f1bf49..a3e7eca 100644 --- a/src/commands/rpg/button_roll.js +++ b/src/commands/rpg/button_roll.js @@ -484,7 +484,8 @@ module.exports = class button_roll { .setLabel(client.tl({ local: int.lang + 'btR-backBt', cmd: numberDice })) .setURL(`https://discord.com/channels/${int.message.guildId}/${int.message.channelId}/${int.message.id}`); - client.utils.secret(client.cache.get(int.user.id), 'roll').then(secret => { + client.cache.get(int.user.id).then(info => { + let secret = client.utils.secret(info, 'roll'); int.followUp({ embeds: [rollEmbed], components: [{ type: 1, components: [backButton] }],