one time command

Hi, I just want to know how can I make a command that can be used by a user only once in his life?
6 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
xjanex
xjanexOP2y ago
Can u explain more pls Like I want to make a discord command that can be used once , I tried to make one but when I restart the bot users r able to use it again ?
Danial
Danial2y ago
Did you store the user id in a database and then compare it when the command is used?
xjanex
xjanexOP2y ago
Do I have to do it manually??
chewie
chewie2y ago
You are supposed to do it the same way you do it now, but with a database so its persistent over restarts
xjanex
xjanexOP2y ago
Ok wait I will try
Want results from more Discord servers?
Add your server