Command Interactions Handler
So I have the folder ./commands, where I've got my commands, all is good there, however with button/menu interactions I manage them in the index.js file, I'm wondering if theres a way to handle them externaly in another file
24 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View

Instead of it being here, I want it in a new file such as

Such as in here
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
can you give me an example ?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View

somethin like this?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View

like this?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
But how will the index.js read it as an "interaction" ?

I should create a collection of customIDs no?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Can I leave this chat open while I try it ?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View


Nevermind, I did it
NVM
