builders
builders copied to clipboard
(types): ApplicationCommandNumberOptionBase is not extending base properly
Issue description
Since the 13.4.0 Djs release, compiling to js fails due to this error:
node_modules/@discordjs/builders/dist/index.d.ts(516,5): error TS2416: Property 'toJSON' in type 'ApplicationCommandNumberOptionBase' is not assignable to the same property in base type 'ApplicationCommandOptionWithChoicesBase<number>'.
Type '() => { min_value: number; max_value: number; type: ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Number; ... 4 more ...; required?: boolean; } | ... 5 more ... | { ...; }' is not assignable to type '() => APIApplicationCommandOption'.
Type '{ min_value: number; max_value: number; type: ApplicationCommandOptionType.String | ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Number; ... 4 more ...; required?: boolean; } | ... 5 more ... | { ...; }' is not assignable to type 'APIApplicationCommandOption'.
Type '{ min_value: number; max_value: number; type: ApplicationCommandOptionType.Subcommand | ApplicationCommandOptionType.SubcommandGroup; options?: APIApplicationCommandOption[]; name: string; description: string; required?: boolean; autocomplete?: undefined; }' is not assignable to type 'APIApplicationCommandOption'.
Type '{ min_value: number; max_value: number; type: ApplicationCommandOptionType.Subcommand | ApplicationCommandOptionType.SubcommandGroup; options?: APIApplicationCommandOption[]; name: string; description: string; required?: boolean; autocomplete?: undefined; }' is not assignable to type 'APIApplicationCommandNumericAutocompleteOptions'.
Types of property 'type' are incompatible.
Type 'ApplicationCommandOptionType.Subcommand | ApplicationCommandOptionType.SubcommandGroup' is not assignable to type 'ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Number'.
Type 'ApplicationCommandOptionType.Subcommand' is not assignable to type 'ApplicationCommandOptionType.Integer | ApplicationCommandOptionType.Number'.
Code sample
No response
@discordjs/builders version
0.10.0
Node.js version
nodejs: 16.6.1, typescript: 4.5.4
Operating system
No response
Priority this issue should have
High (immediate attention needed)
~~Expected, conflicting versions of discord-api-types happened :(~~ We're planning on fixing this very soon! It's an internal issue that needs to be cleaned up
Hey! Will this be fixed soon?
I think this has already been fixed with the latest PR! Just needs to be published
Oh, then I'm waiting (i really need it );)
Todays release did not fix the issue for me. You were talking about #68?
Yep! Make sure you installed the latest version of builders 👀
Yep! Make sure you installed the latest version of builders 👀
My bad, another non-discordjs related problem popped up.