-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support slash commands #146
Comments
One thing: you are limited to 50 guild commands and 50 global commands. |
Why is this a problem? Judgebot has like 14 commands as is. If it ever grows to beyond 50 I think that subcommands could be used to shrink this number. |
Ah, okay
…On Dec 16, 2020, 8:16 PM -0800, Michael Milton ***@***.***>, wrote:
Why is this a problem? Judgebot has like 14 commands as is. If it ever grows to beyond 50 I think that subcommands could be used to shrink this number.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Ooh, nice feature! Thanks for the heads-up, when they finish the linked PR I think it could be used for judgebot. However, it looks like it would need a lot of rewriting and at least the webhook approach won't work with Emoji reactions, if I'm not mistaken. So we'll have to see how an "INTERACTION_CREATE" gateway event will be handled by Discord.JS. |
I think the bot can respond to the interaction with a regular message sent to the channel, at which point you can listen for reactions in the normal way. So I don't think this will be a huge issue. |
Let's hope that's going to be the case. :-) |
It appears so.
…On Dec 18, 2020, 6:30 AM -0800, Steffen ***@***.***>, wrote:
Let's hope that's going to be the case. :-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Okay slash commands are now enabled since discord.js 13.0.0 on August 6. So this feature is unblocked. |
Closed by #159. |
Discord recently added "slash commands", which is a platform-supported method of defining bot commands, subcommands and arguments. It gives features like command completion, a better UI and discoverability for commands: https://discord.com/developers/docs/interactions/slash-commands.
I think this would be a great feature for judgebot. I'm happy to implement this once I get time. Currently this isn't natively supported by discord.js, so it's probably not worth starting until this PR is merged:
discordjs/discord.js#5106discordjs/discord.js#5448.The text was updated successfully, but these errors were encountered: