Discord js Roles Shop

Good morning, I want to write a role store with the ability to set my price and my role through the shop add command, but I have no idea where to write the values ​​from the shop add command so that it later displays them in the embed, there are some suggestions, maybe options , I will be glad for any help.

For instance:
User sets with set add @Role 15000.
In embed, creates / edits addFields by setting name: @Role
value: 15000

If the user adds a new role, creates / edits another one addFields

The quick.db database is connected

1 Like

If you are using a database, you should be able to use backticks to make a string include the variable to the database. Example:

var embed = new MessageEmbed().addField('Role Name', `${Variable name}`, true);
2 Likes