We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
defaultMemberPermissions is allowed as configuration option for the @subcommand decorator, but does nothing when set.
defaultMemberPermissions
import { PermissionFlagsBits, } from 'discord.js'; import { Context, SlashCommandContext, Subcommand, } from 'necord'; @Subcommand({ name: 'command', description: 'Bla', defaultMemberPermissions: [PermissionFlagsBits.Administrator], }) public async onCommand( @Context() [interaction]: SlashCommandContext, ): Promise<InteractionResponse<boolean>> { // func }
14.13.0
10.2.7
18.17.1
MacOS but running in docker with official alpine node image
Medium (should be fixed soon)
No Partials
GUILDS
The text was updated successfully, but these errors were encountered:
Fixed at https://github.com/necordjs/necord/releases/tag/v6.1.8
Sorry, something went wrong.
Just a question to confirm:
defaultMemberPermissions can only be used with GroupCommand and SlashCommand right?
Or is there a way to make it work on SubCommand as well?
Just a question to confirm: defaultMemberPermissions can only be used with GroupCommand and SlashCommand right? Or is there a way to make it work on SubCommand as well?
Only with @SlashCommand and createCommandGroup.
@SlashCommand
createCommandGroup
No, it not supported by Discord
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Issue description
defaultMemberPermissions
is allowed as configuration option for the @subcommand decorator, but does nothing when set.Code sample
discord.js version
14.13.0
nest.js version
10.2.7
Node.js version
18.17.1
Operating system
MacOS but running in docker with official alpine node image
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
GUILDS
The text was updated successfully, but these errors were encountered: