From 7a91bfbee43e5e448f6f46bb0eb8848067ecd52d Mon Sep 17 00:00:00 2001 From: alanfilho184 Date: Mon, 12 Aug 2024 18:30:13 -0300 Subject: [PATCH] v4.13.6 - Removendo chamada de updateFichasUser --- package.json | 2 +- src/commands/rpg/ficha.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0a66e23..8281b3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kami", - "version": "4.13.5", + "version": "4.13.6", "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/ficha.js b/src/commands/rpg/ficha.js index b3aef12..8470047 100644 --- a/src/commands/rpg/ficha.js +++ b/src/commands/rpg/ficha.js @@ -301,7 +301,7 @@ module.exports = class ficha { if (atb == "multi") { client.cache.updateFicha(int.user.id, nomerpg, valor, { query: "insert" }) .then(async r => { - await client.cache.updateFichasUser(int.user.id, nomerpg) + // await client.cache.updateFichasUser(int.user.id, nomerpg) var msgToSend = String() if (atbsErr[0]) { msgToSend = client.tl({ local: int.lang + "cef-updtMultiErr", nomerpg: nomerpg, atributo: atbs, valor: vals, atb: atbsErr }) @@ -328,7 +328,7 @@ module.exports = class ficha { if (client.utils.isDefaultAtb(atb, atributos)) { atb = atributosF[atributosPt.indexOf(atb)] } - await client.cache.updateFichasUser(int.user.id, nomerpg) + // await client.cache.updateFichasUser(int.user.id, nomerpg) return int.editReply({ content: client.tl({ local: int.lang + "cef-adcFicha", nomerpg: nomerpg, atributo: atb, valor: valor }), components: [] }) .then(() => { client.emit("createFichaBot", int.user.id, nomerpg)