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:Jump to solution
Anyway you should just register them in the same class and implement both chatInputRun and contextMenuRun instead of having 2 classes
3 Replies
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
Anyway you should just register them in the same class and implement both chatInputRun and contextMenuRun instead of having 2 classes
Worked, thanks