Is there a way to make precondition in interaction be ephemeral?
cause with the OwnerOnly the CLI gives it throws the error in a regular reply.
Solution:Jump to solution
you should refer to https://sapphirejs.dev/docs/Guide/preconditions/reporting-precondition-failure then
Sapphire Framework
Reporting precondition failure | Sapphire
When a precondition fails, it's usually important for the user to know why. For example, if they hit a cooldown or lack
9 Replies
yes, just add the property.
where?
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
yeah, but in the example you guys gave in the CLI there is no interaction reply, you do this.error.
Reference:
oh thats what you meant
Solution
you should refer to https://sapphirejs.dev/docs/Guide/preconditions/reporting-precondition-failure then
Sapphire Framework
Reporting precondition failure | Sapphire
When a precondition fails, it's usually important for the user to know why. For example, if they hit a cooldown or lack
yeah lmao
lemme check that one sec
oh so we do a listener for that?
yes
Gotchu, thanks!