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
d.js docs
d.js docs3y 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.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
chewie
chewie3y ago
I dont see one single benefit of message commands, but okay. WE dont require anyone to do anything. Discord wants this change.
Erin
ErinOP3y ago
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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Erin
ErinOP3y ago
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.
chewie
chewie3y ago
You can hide them for everyone except a specific user and admins admins always see all commands
Erin
ErinOP3y ago
Is that with the permissions?
chewie
chewie3y ago
you can grant individual users permissions
Erin
ErinOP3y ago
Ah, so it is.
chewie
chewie3y ago
but thats done via the server settings, not code
Erin
ErinOP3y ago
Oh, so you hide all commands, not some?
chewie
chewie3y ago
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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
chewie
chewie3y ago
if you have the token yes which you most likely wont have
Erin
ErinOP3y ago
So you hide all slash commands not just some commands?
chewie
chewie3y ago
you can hide some commands, like I just said
Erin
ErinOP3y ago
I'm only referring to a bot that I develop so I will have the token.
chewie
chewie3y ago
not the bot token a bearer token using oauth2
Erin
ErinOP3y ago
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
chewie
chewie3y ago
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
Erin
ErinOP3y ago
Where in the server settings?
chewie
chewie3y ago
Server Settings -> Integrations -> Your Bot
Erin
ErinOP3y ago
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?
d.js docs
d.js docs3y ago
guide OAuth2: Getting started with OAuth2 read more
Erin
ErinOP3y ago
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.
d.js docs
d.js docs3y ago
Suggestion for @dudethatserin:guide Interactions: Registering slash commands - Guild commands read more
Erin
ErinOP3y ago
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!
Want results from more Discord servers?
Add your server