New Question

How Do i make a warn commands so like /warn
8 Replies
d.js toolkit
d.js toolkit15mo 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.
d.js docs
d.js docs15mo ago
Suggestion for @fractal.akanico:guide Creating Your Bot: Creating slash commands read more
Fractyl
Fractyl15mo ago
I know how to make / commands i want to know how to make a warn command the adds warns to a user
Squid
Squid15mo ago
you should use a database to store the warns and have that storage persist across restarts
Fractyl
Fractyl15mo ago
But how do i do that Im not sure on even where to begin
Squid
Squid15mo ago
First, you have to pick which database to use. You can google different nodejs wrappers for different DBs
Fractyl
Fractyl15mo ago
what db do you recommend
Squid
Squid15mo ago
I personally use the mongoose wrapper for mongodb However, this isn't very discord.js-related, so you should ask any specific questions for your choice in #other-js-ts
Want results from more Discord servers?
Add your server