v2.3.3
This commit is contained in:
parent
33b1087671
commit
45b1f8c2df
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navy.gif/logger",
|
||||
"version": "2.3.2",
|
||||
"version": "2.3.3",
|
||||
"description": "Logging thing",
|
||||
"author": "Navy.gif",
|
||||
"license": "MIT",
|
||||
|
@ -168,14 +168,16 @@ class MasterLogger implements Logger {
|
||||
if (this.#_logLevelMapping[type] >= this.#_logLevel)
|
||||
console.log(`${colour.func(type)}${spacer} ${colour.func(header)}: ${chalk.bold(subheader)}${text}`); // 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: `**${subheader}**\n\`\`\`${text}\`\`\``,
|
||||
description,
|
||||
color: colour.int
|
||||
}]
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
const streamType = this.#streamTypeMapping[type] || 'default';
|
||||
if (this.#writeStreams[streamType])
|
||||
|
Loading…
Reference in New Issue
Block a user