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
Favna2y ago
Name and file location of the listener file?
xAfflict
xAfflictOP2y 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
Favna2y ago
rename it to chatInputCommandDenied. The casing is important. Alternatively assign the name in the constructor.
xAfflict
xAfflictOP2y ago
Works now, thank you so much!
Want results from more Discord servers?
Add your server