What does commandError emit?

I'm struggling to find what commandError emits when fired by sapphire.
Solution:
A chatInputCommandError event emits a ChatInputCommandErrorPayload
Jump to solution
9 Replies
Ben
Ben2y ago
Which CommandError event? there are three (chatInputCommandError, contextMenuCommandError, and messageCommandError)
net-tech-
net-tech-OP2y ago
wait I have to make a separate file for each? chatInputCommandError for starters then
Ben
Ben2y ago
If you want to do something on each event than yes, you need separate listeners for each (you can put them in one file though).
Solution
Ben
Ben2y ago
A chatInputCommandError event emits a ChatInputCommandErrorPayload
Ben
Ben2y ago
You can probably guess what the other two emit lol
net-tech-
net-tech-OP2y ago
how would you put them in the same file? Isn't it one file per listener
Ben
Ben2y ago
You can totally have more than one, just export more than one class. Heres an example https://github.com/BenSegal855/Steve-V3/blob/dev/src/listeners/errors/commandError.ts
net-tech-
net-tech-OP2y ago
Thank you
Ben
Ben2y ago
np
Want results from more Discord servers?
Add your server