With this new change with the bots, is DJS slowly going to require bots to use slash commands?
With this new change with the bots, is DJS slowly going to require bots to use slash commands vs the old way?
Cause they are still limited in functionality and there is a reason why bots are still using the old way.
28 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.Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I dont see one single benefit of message commands, but okay.
WE dont require anyone to do anything.
Discord wants this change.
Oh, had no idea it was Discord and not DJS.
If you want to provide message IDs, channel IDs or both to a bot, then slash commands are slower and you can't (that I know of at least) provide more than 1 per command to a bot.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I'll have to look into StringOptions...
Good to know.
Last question, what if you only want a single user to be able to use a command or want cooldowns for commands?
Latter I've never been able to get to work (thus far) and former, besides having messages AFTER the command is run be displayed, there isn't a way to "hide" those commands and only show them to the user that can use them (aka myself for my own discord bot)... currently with message commands you just don't include them in help and they are theoretically hidden unless someone watches you run the command (then I do that whole spit out message thing) but they don't show up when typing in the prefix cause that isn't how prefix commands work.
You can hide them for everyone except a specific user and admins
admins always see all commands
Is that with the permissions?
you can grant individual users permissions
Ah, so it is.
but thats done via the server settings, not code
Oh, so you hide all commands, not some?
the only thing you do via code is set the initial required perms
you set perms on a command, not all at once
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
if you have the token
yes
which you most likely wont have
So you hide all slash commands not just some commands?
you can hide some commands, like I just said
I'm only referring to a bot that I develop so I will have the token.
not the bot token
a bearer token using oauth2
But you also said this and I don't understand how to limit it via server settings to just some commands... is that possible?
Ah
the only thing you do via code is set the initial required permission for each command
everything else -> server settings or if you got the bearer token
Where in the server settings?
Server Settings -> Integrations -> Your Bot
ah, so I would have to get the oauth token in order for that to work for a public bot.
How do I get that token?
I guess, just not sure how to deploy certain commands to only my guild server. So far it is sounding like a possible switch over for my bot though some commands will be tricky.
Oh so i'd have to create a separate collection and just deploy that collection to my guild server... I could do that.
What about only displaying commands administrators can use to admins for a public bot?
Alright, will do. Thank you guys so much!