New Question

How Do i make a warn commands so like /warn
8 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.
d.js docs
d.js docs2y ago
Suggestion for @fractal.akanico:guide Creating Your Bot: Creating slash commands read more
Fractyl
FractylOP2y ago
I know how to make / commands i want to know how to make a warn command the adds warns to a user
Squid
Squid2y ago
you should use a database to store the warns and have that storage persist across restarts
Fractyl
FractylOP2y ago
But how do i do that Im not sure on even where to begin
Squid
Squid2y ago
First, you have to pick which database to use. You can google different nodejs wrappers for different DBs
Fractyl
FractylOP2y ago
what db do you recommend
Squid
Squid2y 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