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(''); + } +}