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
Add property type
to SlashCommandBuilder
#9183
Conversation
Might help if people want to categorize their commands, instead of checking if the builder is a SlashCommandBuilder, they can simply check the `type` property of builder, very much like how `ContextMenuCommandBuilder` does it
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This is not consistent builders design. You use the builder while you want to add to it/change it. When you‘re done you can |
I had spent a few minutes looking at the toJSON and there is nothing adding If you want to talk about design, we can also talk about how ContextMenuCommandBuilder does have a |
packages/builders/src/interactions/slashCommands/SlashCommandBuilder.ts
Outdated
Show resolved
Hide resolved
Add relevant type from the relevant enum `ApplicationCommandType`
Sorry, I have to disagree. For the use-case you described developers can simply add a |
Well, what are the downsides? |
There is just no need to add it |
The You may use |
Please describe the changes this PR makes and why it should be merged:
Might help if people want to categorize their commands, instead of checking if the builder is a SlashCommandBuilder, they can simply check the
type
property of builder, very much like howContextMenuCommandBuilder
does itStatus and versioning classification: