The Command That Has Me Stuck

I want to make a shop command that has a limited stock and will have a different item in each one. Currently the only idea that really comes into my mind is using MongoDB to add an item to the stock and giving it a value number then the command will sort it and grab the newest one. I also need it to keep track of the current stock amount and have it send the user a DM when they purchase out of the stock with the item that they purchase. Does anyone here know how I can do this?
2 Replies
d.js toolkit
d.js toolkit8mo ago
- 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!
Jordan
JordanOP8mo ago
const embed=new EmbedBuilder()
.setTitle('DGB Coin Shop')
.setDescription('**Test**\n`Stock: 0`')
.setFooter({text: `Command used by ${message.author.username}`})
.setColor('#00ff00');
return message.reply({embeds: [embed]});
const embed=new EmbedBuilder()
.setTitle('DGB Coin Shop')
.setDescription('**Test**\n`Stock: 0`')
.setFooter({text: `Command used by ${message.author.username}`})
.setColor('#00ff00');
return message.reply({embeds: [embed]});
can I just pay someone to do this this is way above my skill level they wanted $80 for it nah I'll pass $80 on fiverr I could get a person to do 20 commands lol bro couldnt do 4 for $40 oof
Want results from more Discord servers?
Add your server