From fee833d231edb9c8bf1a00ddfdd1b5f468845e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Fri, 10 Sep 2021 01:43:53 +0300 Subject: [PATCH] Update warning event --- src/client/events/warning.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/client/events/warning.js diff --git a/src/client/events/warning.js b/src/client/events/warning.js new file mode 100644 index 0000000..537c089 --- /dev/null +++ b/src/client/events/warning.js @@ -0,0 +1,12 @@ +module.exports = { + name: 'warning', + execute(client, warning) { + if(warning.name == "ExperimentalWarning" && warning.message.startsWith("stream/web")) return; + + client.funcs.logger("Warning"); + console.warn(warning.name); + console.warn(warning.message); + console.warn(warning.stack); + console.log(''); + } +}