Global precondition
I'm not able to answer a custom message with global precondition
(global.ts) in preconditions folder
Solution:Jump to solution
it is
chatInputCommandDenied
and contextMenuCommandDenied
not commandDenied
since v3 of the framework: https://www.sapphirejs.dev/docs/Guide/getting-started/updating-from-v2-to-v3#sapphire-events-added8 Replies
The error is "The application did not respond" I'm pretty sure it's because I'm not able to link those two files
- name of the file of the listener?
- are you using subcommands?
No subs commands, and the name is commandDenied.ts
My goal is to reject every slashcommands based on a single role check
The main issue is that no reply is send to the client, and "commandDenied" doesn't seems to be used
Any idea?
Solution
it is
chatInputCommandDenied
and contextMenuCommandDenied
not commandDenied
since v3 of the framework: https://www.sapphirejs.dev/docs/Guide/getting-started/updating-from-v2-to-v3#sapphire-events-addedIl will check that
Perfect, renaming my listener resolved the issue
Thank you very much 🙏