How can i add no prefix system into my bot??

I have to create a full no prefix system along with no prefix add remove list command how can i do that
15 Replies
d.js toolkit
d.js toolkit7mo 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!
monbrey
monbrey7mo ago
I have no idea what you mean. What is a "no prefix" system?
! Anshu.og...🥀
! Anshu.og...🥀OP7mo ago
like owner or admin of a bot doesn't have to use prefix for command and they can add member in this system
monbrey
monbrey7mo ago
Well that would just be exactly the same as prefix command system but without the prefix check. Instead do a member check. It's not really discord.js related as there's no specific Discord functionality for this other than listening to messageCreate events
! Anshu.og...🥀
! Anshu.og...🥀OP7mo ago
like can we not define a user to to just if message come from this user then the prefix will be "!", " "
monbrey
monbrey7mo ago
Of course you can
! Anshu.og...🥀
! Anshu.og...🥀OP7mo ago
but for all commands in one
monbrey
monbrey7mo ago
Yes
! Anshu.og...🥀
! Anshu.og...🥀OP7mo ago
can we just do it for all commands with one code
monbrey
monbrey7mo ago
Check the message.author.id Yes
! Anshu.og...🥀
! Anshu.og...🥀OP7mo ago
ok Some example to how can i just do it
monbrey
monbrey7mo ago
We dont have any examples for this, no, because slash commands are the recommended and officially supported method
! Anshu.og...🥀
! Anshu.og...🥀OP7mo ago
Can you make a code for me just for example
monbrey
monbrey7mo ago
no We dont spoonfeed code
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server