ChatInputCommandDenied listener not working
https://hastebin.skyra.pw/zegacopaje.ts (Listener)
https://hastebin.skyra.pw/umabaligoc.ts (Precondition)
https://hastebin.skyra.pw/yosaqacezi.ts (Example Command)
https://hastebin.skyra.pw/oxofukofew.ts (Main)
I've been following the guides and I've created a precondition, put it on a command, and it works. My issue is that when the precondition is not satisfied, the listener is not being triggered.
The precondition itself is working, but I am still getting the default "the application did not respond" rather than my error message.
4 Replies
Name and file location of the listener file?
The listener is in
listeners, the commands are in commands, the preconditions are in preconditions, and the Main is adjacent to those directories
Listener file name is ChatInputCommandDenied.ts
rename it to
chatInputCommandDenied. The casing is important. Alternatively assign the name in the constructor.Works now, thank you so much!