How do i get interaction's integration type (the ApplicationIntegrationType class)?

- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
6 Replies
d.js docs
d.js docs11mo ago
:property: CommandInteraction#context discord.js@14.17.2 Context where the interaction was triggered from
treble/luna
treble/luna11mo ago
Theres nothing more than that though the context tells you where the command was used Not too sure if it happens in a guikd whether it'll be user or guild, but that guild wont then be cached If its a user app command in a guild, said guild wont be cached, thats one way to determine Then it will be cached, if you have the Guilds intent as for this, not too sure but that might depend on the command being cached Yeah it relies on cache so you'd have to have your commands cached for that to work And even then that wont really be usefuk because that will include the integration types you set, not the one thats used
d.js docs
d.js docs11mo ago
:property: ClientApplication#commands discord.js@14.17.2 The application command manager for this application
treble/luna
treble/luna11mo ago
.fetch() that no because thats your command you have deployed but if both integrationtypes are set, they will both be returned well what if that command was used outside of a guild I'm not even sure if you can access the guild locale as a user app
d.js docs
d.js docs11mo ago
:property: CommandInteraction#authorizingIntegrationOwners discord.js@14.17.2 Mapping of installation contexts that the interaction was authorized for the related user or guild ids
treble/luna
treble/luna11mo ago
Forgot thos existed might be useful too

Did you find this page helpful?