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
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
Discord Bot for Traveler Mains Server. Contribute to MRDGH2821/Perpetual-Mechanical-Array-Bot development by creating an account on GitHub.
