Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutocompleteInteraction does not define context or authorizingIntegrationOwners #10516

Closed
kevinlul opened this issue Sep 22, 2024 · 0 comments · Fixed by #10517
Closed

AutocompleteInteraction does not define context or authorizingIntegrationOwners #10516

kevinlul opened this issue Sep 22, 2024 · 0 comments · Fixed by #10517

Comments

@kevinlul
Copy link

Which package is this bug report for?

discord.js

Issue description

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)
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants