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
Unknown User2y 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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
布鲁诺 普雷托
can you give me an example ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
布鲁诺 普雷托
somethin like this?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
布鲁诺 普雷托
like this?
Unknown User
Unknown User2y 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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
布鲁诺 普雷托
Can I leave this chat open while I try it ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
布鲁诺 普雷托
Nevermind, I did it NVM
Want results from more Discord servers?
Add your server