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
Favna
Favna15mo ago
Name and file location of the listener file?
xAfflict
xAfflict15mo ago
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
commands
AddCommand.ts
BalanceCommand.ts
DailyCommand.ts
ResetCommand.ts
listeners
ChatInputCommandDenied.ts
preconditions
IsValidChannel.ts
Main.ts
commands
AddCommand.ts
BalanceCommand.ts
DailyCommand.ts
ResetCommand.ts
listeners
ChatInputCommandDenied.ts
preconditions
IsValidChannel.ts
Main.ts
Favna
Favna15mo ago
rename it to chatInputCommandDenied. The casing is important. Alternatively assign the name in the constructor.
xAfflict
xAfflict15mo ago
Works now, thank you so much!