-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editable logging and built-in validation messages #69
Comments
The default interaction replies such as Customization for logs shown in the console however ( If you'd like to use custom messages for the default interaction replies mentioned above, you can create your own custom validation function(s). For context: Validations are functions that are called before a command is handled by CommandKit. Validation functions can control the lifecycle of a command by either:
Important: Validation functions are called before CommandKit's built-in validations so you have more control over the lifecycle of commands handled. To setup your own custom validation function that overrides the default interaction replies, you can do the following:
The above example shows how you can reply with a custom message by checking for the In each of the above built-in CommandKit validations, assume |
Thank you for your clarifications for the validation messages, I'd like to have customized logging message implemented though. |
Thank you for the suggestion. We'll try to find a way to add customized logging which doesn't result to a messy codebase because that's currently the biggest concern with this feature. |
Currently, we cannot edit the logging and built-in validation messages.
✅ Loaded 1 global commands.
❌ Only developers can use this command
Make it so we can customize it with our desire
The text was updated successfully, but these errors were encountered: