As pointed out by Jira recently on GitHub, discord.js was missing a few typings for application command options.
Namely Boolean, Role, User and Mentionable.
I cross-checked all possible options, and found a few possible missing types that I'm not sure about (see yellow fields in attached image).
ApplicationCommandOptionincludesApplicationCommandAttachmentOption. However,ApplicationCommandOptionDatadoes not includeApplicationCommandAttachmentOptionData(which doesn't even exist). Is that correct?- Actually, I should test this one by myself.ApplicationCommandSubCommandDatadoes not includeApplicationCommandAttachmentOption. This is probably correct, since I can't imagine an attachment being part of a subcommand. But... is it?ApplicationCommandAutocompleteOptionis part ofApplicationCommandOptionData. The naming is inconsistent, since I'd have expected it to be calledApplicationCommandAutocompleteOptionData. Is there a reason for that?ApplicationCommandAutocompleteOption(or anything having to do with autocomplete) is missing fromApplicationCommandOption.
I just wanna make sure that the typings for application command options are correct, but I'm very new to this.