Core - Add invoke error message customisation (#5894)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Predä
2022-12-30 04:43:37 +01:00
committed by GitHub
parent 88a348210c
commit 60a9d47003
5 changed files with 76 additions and 13 deletions

View File

@@ -3080,6 +3080,35 @@ This is only applied to the current server and not globally.
**Arguments:**
- ``[time]`` - The seconds to wait before deleting the command message. Use -1 to disable.
.. _core-command-set-errormsg:
""""""""""""
set errormsg
""""""""""""
.. note:: |owner-lock|
**Syntax**
.. code-block:: none
[p]set errormsg [msg]
**Description**
Set the message that will be sent on uncaught bot errors.
To include the command name in the message, use the ``{command}`` placeholder.
If you omit the ``msg`` argument, the message will be reset to the default one.
**Examples:**
- ``[p]set errormsg`` - Resets the error message back to the default: "Error in command '{command}'.". If the command invoker is one of the bot owners, the message will also include "Check your console or logs for details.".
- ``[p]set errormsg Oops, the command {command} has failed! Please try again later.`` - Sets the error message to a custom one.
**Arguments:**
- ``[msg]`` - The custom error message. Must be less than 1000 characters. Omit to reset to the default one.
.. _core-command-set-fuzzy:
"""""""""