Using Modals with CommandInteraction
When attempting to use Modals with interactions (specifically slash commands), tsc is throwing errors..?
Code, copy pasted from the guide (both examples)
where
interaction
is a CommandInteraction<'cached'>
TS error:
Tried calling toJSON
and accessing the data
prop, neither work.
Relevant versions:
5 Replies
bump
oops never saw this reply
what sort of API is that? do you just pass an object to the constructor?
(also why does the guide showcase this if it isnt even functional)
You may be looking at a part of the guide which has been updated to v14
The fully v13 guide is located at https://v13.discordjs.guide/
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
apparently so
would have been nice to know that & document that in the changelogs but w/e
It's in <#769862166131245066> at the moment