Some Listeners/All Interaction Handlers not working
Some listeners work some dont. For example,
ready
listener works and some events work (REST debig and music), but this (screenshot) event doesnt work or some others as well. None of the interaction handlers work (screenshot added in a new message)
15 Replies


none of those trigger
For the listeners make sure you have the right intents enabled. For the interaction handlers make sure you have them in the right directory (interaction-handlers with a -)
Log whatever is in the store to check if they are really there.
good idea about the stores part
I have all intents i use enabled and with correct directories

this is hella weird
the stores have the right values

wait
Do file names matter?
like if i name two files
autocomplete
will it override the other one?I have two files named autocomplete but they are in different folders, could that be the issue?


thats 100% the issue
Solution
im gonna add "name" property to every handler and every listener
yep that fixed it
Yes
Store is an extension of Collection which is an extension of Map which has keyed values
You could set the name property in the options if you really want identical file names but ultimately it's going to make navigating to files harder anyway so I wouldn't recommend it (command pallets -> type file name -> now you have 2+ matches instead of 1)
Thank you