How can I use an prefix instead of slash?
Explain it simple please, first time using discord.js
37 Replies
- 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!Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I use v14, I only want prefix commands due to it being needed for the system I'm attempting to make.
So is there like an tutorial.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
^
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
🤦♂️
Okay give me a second to gather some screenshots.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'm able to send screenshot and you can guide me right?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
No, like correct my mistakes.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
alright
this still good for v14 right?
so i can just paste this in my config file
?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ohh
alright
i will come back if i have a mistake
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
this correct v14 format correct?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
its still gonna work tho right?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
If you aren't getting content, embeds or attachments of a message, make sure you have the
MessageContent
intent enabled in the Developer Portal and provide it to your client:
fixed
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
im using daki hosting
how im suppose to test it?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
my laptop cant run vsc without it crashing
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Actually nevermind, I just seen a way to do it with slash.
But yk how circle uses prefix? I want to use prefix aswell because I'm making a bot like that.
Okay, I will just use slash.
I will see how it works.
Maybe im a bit too late for answer this and may be useless due I use this in Discord.js v13 but this probably can help you
So, your command with prefix in a text channel should be something like this:
user input:
!Command_name_01
bot output:
some command
user input:
!Command_alias_02
bot output:
same command
user input:
!Command_alias_03
bot output:
same command as the first two