Type 'ApplicationCommandOptionType.String' is not assignable to type 'ApplicationCommandOptionType.Subcommand | ApplicationCommandOptionType.SubcommandGroup'.
Looking at the CommandData type here I've noticed that it might be lacking APIApplicationCommandBasicOption in Array<APIApplicationCommandSubcommandOption | APIApplicationCommandSubcommandGroupOption>.
Hello, I've recently bumped into an error while coding a simple command that accepts a string option.
(I removed name & description for the sake of focusing on the main problem here)
Here it gives me an error:
Looking at the
CommandData
type here I've noticed that it might be lackingAPIApplicationCommandBasicOption
inArray<APIApplicationCommandSubcommandOption | APIApplicationCommandSubcommandGroupOption>
.However, looking at the code in
src/types/index.ts
:You are actually using
APIApplicationCommandOption
which kind of covers all the types as the official discord.js documentation suggests.Not exactly sure what causes the issue here, but I thought it would be good to report a problem.