Ignoring Precondition Failures
I'm working on a precondition that I wanna ignore on the
ChatInputCommandDenied
listener. The documentation suggests to a add information on the context
in the Precondition
and check for it in ChatInputCommandDenied
.
That works but I realized that the interaction response will be:
The application did not respondIs that expected or did I miss something?
7 Replies
you're not. Interactions have to be replied to. I never really thought about it but yeah the guide needs to be adjusted for that. Not sure what the proper fix would be. Not sure if
interaction.reply()
works... @Vladdy can interactions just be acknowledged but without an actual reply to the user?no
interactions NEED to send something
Solution
Only button ones can update a message with the same content and be fine
I suppose the least you can send then is a single zero width space but probably to just reply something then, but reply ephemeral so it's only visible to the user
Thanks that is what I’m doing just wanna check if the docs miss something
don't suppose you can make a PR to adjust that bit of text in the guide @danielpassos ? Would save me doing it haha
Will do!