Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.13.6 - Removendo chamada de updateFichasUser #38

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.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": {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/rpg/ficha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand All @@ -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)
Expand Down