Two Commands In One File

when i export chat input command and user context menu command in one file it reads the first export only. what's the problem ?
Solution:
Anyway you should just register them in the same class and implement both chatInputRun and contextMenuRun instead of having 2 classes
Jump to solution
3 Replies
Favna
Favna11mo ago
Give them a name in the config. If you don't the file name is used and we store commands in a Map which requires unique keys. Also make sure you do not export default
Solution
Favna
Favna11mo ago
Anyway you should just register them in the same class and implement both chatInputRun and contextMenuRun instead of having 2 classes
ItaChi
ItaChiOP11mo ago
Worked, thanks

Did you find this page helpful?