get options from interaction
how exactly are we supposed to get options from interaction when using @discordjs/core

7 Replies
it should be interaction.data.options, and you'll need to further narrow the type by checking for command type i think, because PrimaryEntryPointCommandInteraction doesn't have options
I think you meant === ApplicationCommand, not !==
That too yeah ^^
same thing happens tho, how do i narrow it down by checking if its APIMessageApplicationCommandInteractionData
oh there is also data.type
wha
data.type is command type, so you need to exclude entrypoint too i believe
/core is mostly raw data, so it's not as easy to use as djs
its docs are pretty much discord's
just with camelCase instead of snake_case