The ability to show the balance
I made a command to show the balance by writing .setLabel on the button. But what I want is not for the balance of the person who wrote the command, but for the individual balance to be displayed differently on each screen on the button.
The balance function gets the balance of the account number from db to userid.
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!if you want each person in the guild to see a different label on the button, then that's not possible
the best alternative i can think of is for the button label to be "Show my balance", or something, then on interaction you could do an ephemeral reply with the balance of the user that pressed it