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
Favna6mo 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
Favna6mo ago
Anyway you should just register them in the same class and implement both chatInputRun and contextMenuRun instead of having 2 classes
ItaChi
ItaChi6mo ago
Worked, thanks
Want results from more Discord servers?
Add your server