According to Discord documentation, authorizing_integration_owners is available for all interactions like id or type. context is nullable but nothing suggests that it is not present for autocomplete interactions as a rule. In Discord.js, these fields are only available for CommandInteraction and not AutocompleteInteraction.
Code sample
function onCommand(interaction: ChatInputCommandInteraction) {
interaction.authorizingIntegrationOwners;
interaction.context;
}
function onAutocomplete(interaction: AutocompleteInteraction) {
interaction.authorizingIntegrationOwners; // Property 'authorizingIntegrationOwners' does not exist on type 'AutocompleteInteraction<CacheType>'.ts(2339)
interaction.context; // Property 'context' does not exist on type 'AutocompleteInteraction<CacheType>'.ts(2339)
}
Which package is this bug report for?
discord.js
Issue description
According to Discord documentation,
authorizing_integration_owners
is available for all interactions likeid
ortype
.context
is nullable but nothing suggests that it is not present for autocomplete interactions as a rule. In Discord.js, these fields are only available for CommandInteraction and not AutocompleteInteraction.Code sample
Versions
discord.js 14.16.2
Issue priority
Low (slightly annoying)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response