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)
No description
Solution:
im gonna add "name" property to every handler and every listener
Jump to solution
15 Replies
Azrael⛧⸸
Azrael⛧⸸OP4d ago
No description
Azrael⛧⸸
Azrael⛧⸸OP4d ago
No description
Azrael⛧⸸
Azrael⛧⸸OP4d ago
none of those trigger
Favna
Favna4d ago
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.
Azrael⛧⸸
Azrael⛧⸸OP4d ago
good idea about the stores part I have all intents i use enabled and with correct directories
Azrael⛧⸸
Azrael⛧⸸OP4d ago
No description
Azrael⛧⸸
Azrael⛧⸸OP4d ago
this is hella weird the stores have the right values
Azrael⛧⸸
Azrael⛧⸸OP4d ago
No description
Azrael⛧⸸
Azrael⛧⸸OP4d ago
wait Do file names matter? like if i name two files autocomplete will it override the other one?
Azrael⛧⸸
Azrael⛧⸸OP4d ago
I have two files named autocomplete but they are in different folders, could that be the issue?
No description
No description
Azrael⛧⸸
Azrael⛧⸸OP4d ago
thats 100% the issue
Solution
Azrael⛧⸸
Azrael⛧⸸4d ago
im gonna add "name" property to every handler and every listener
Azrael⛧⸸
Azrael⛧⸸OP4d ago
yep that fixed it
Favna
Favna4d ago
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)
Azrael⛧⸸
Azrael⛧⸸OP3d ago
Thank you

Did you find this page helpful?