Undefined when I try to pass objects to another file.
I am trying to figure out how to do embed pagination for my Discord bot and I getting stuck on this. gimme a min to explain everything.
3 Replies
I have a custom command handler, that splits the slash commands, select menus, buttons, etc. into different category, and what I am trying to do is, exports some variables and arrays using exports.<variable> = <variable> but nothing is working. Screenshot 1 is the command file. and for testing purposed I made so that when the next button is pressed it sends the values from the command file.
Not really djs related, but they are a few techniques to do it, in node, one would be..
fileOne.js
fileTwo.js