defaultLocked

Specifies whether the application command is disabled for everyone but administrators by default, so that administrators can further configure the command.

Note: You cannot use this with @UserPermissions.

For example, this may let administrators configure which members/roles have access to the ban command, without requiring the Ban Members permission.

Default: false

Return

true if the command should be disabled by default

See also

TopLevelSlashCommandBuilder.isDefaultLocked

DSL equivalent