While refactoring and sourcing out some modals into external files, i encountered this error.
Ive been trying for a few hours so im 100% sure its the exact same code.
Ive also tried the modal tutorial code from the discordjs wiki and could reproduce the error when putting it in a function that returns a modal which resides in a different file.