jeelzzz - is there any way to export multiple thi...

is there any way to export multiple things from a command / listener's file? like can i name the export something like command and it'll let me export other stuff without breaking
2 Replies
jeelzzz
jeelzzzOP3y ago
looks like it should be supported? when i add a function as an export though it throws TypeError: piece.aliases is not iterable
Favna
Favna3y ago
If i remember correctly if you keep commands in the commands folder and listeners in the listeners folder it's fine. The error you get is by trying to mix listeners (who don't have aliases) in commands (who do) and so piece.aliases is not iterable for listeners.
Want results from more Discord servers?
Add your server