Compare commits

..

No commits in common. "c3f005073452344d8d527b7b1ec8ff0117f34453" and "6b8692e63a8e8716d4e8985443828840de6a88bf" have entirely different histories.

3 changed files with 3 additions and 7 deletions

View File

@ -145,7 +145,6 @@
"no-buffer-constructor": "warn",
"no-caller": "warn",
"no-console": "warn",
"no-constant-binary-expression": "error",
"no-div-regex": "warn",
"no-dupe-else-if": "warn",
"no-duplicate-imports": "warn",

View File

@ -1,6 +1,6 @@
{
"name": "@navy.gif/logger",
"version": "2.4.4",
"version": "2.4.3",
"description": "Logging thing",
"author": "Navy.gif",
"license": "MIT",

View File

@ -229,17 +229,14 @@ class MasterLogger implements Logger
else
console.log(out); // eslint-disable-line no-console
}
if ((broadcast || (this.#_broadcastLevel <= this.#_logLevelMapping[type])) && this.#webhook)
if ((broadcast || this.#_broadcastLevel <= this.#_logLevelMapping[type]) && this.#webhook)
{
const description = (subheader.length ? `**${subheader}**\n` : '') + `\`\`\`${text}\`\`\``;
this.#webhook.send({
embeds: [{
title: `[__${type.toUpperCase()}__] ${this._shard(shard)}`,
description,
color: colour.int,
footer: {
text: `ENV: ${process.env.NODE_ENV ?? 'production'}`
}
color: colour.int
}]
});
}