Update ShardClientUtil.js

This commit is contained in:
Elysia
2025-02-14 22:23:34 +07:00
parent f9216e58ae
commit 5f9089b60b

View File

@@ -211,6 +211,9 @@ class ShardClientUtil {
error.stack = err.stack; error.stack = err.stack;
/** /**
* Emitted when the client encounters an error. * Emitted when the client encounters an error.
* <warn>Errors thrown within this event do not have a catch handler, it is
* recommended to not use async functions as `error` event handlers. See the
* [Node.js docs](https://nodejs.org/api/events.html#capture-rejections-of-promises) for details.</warn>
* @event Client#error * @event Client#error
* @param {Error} error The error encountered * @param {Error} error The error encountered
*/ */