Handling modal submissions
What Is the correct way to handle modals?
https://github.com/MRDGH2821/Perpetual-Mechanical-Array-Bot/blob/rewrite-sapphire/src/baseBot/commands/confess.ts#L207
I tried this way, but the logs throw Unknown Interaction error. So I definitely know this is incorrect way to do.
I just want to know the proper way to do this.
I don't want to create a separate interaction handler just for modal as all the required logic exists inside that same command file
GitHub
Perpetual-Mechanical-Array-Bot/confess.ts at rewrite-sapphire · MRD...
Discord Bot for Traveler Mains Server. Contribute to MRDGH2821/Perpetual-Mechanical-Array-Bot development by creating an account on GitHub.
3 Replies
https://github.com/favware/dragonite/blob/main/src/commands/Admin/eval.ts + https://github.com/favware/dragonite/blob/main/src/interaction-handlers/modals/evalModal.ts
Oh you don't want a handler
Well then you use awaitModal
Forgot how
Discordjs guide has the info
This solution worked for me.
I had to put
filter
& time
to get things working
My face when 3*1000*60 > 180e3
Or