Update src/utils/utils.ts
This commit is contained in:
parent
7c29ad240f
commit
3fed27d62e
@ -90,6 +90,8 @@ export function adminLog(client: Client, text: string, err?: string | Error) {
|
||||
}
|
||||
|
||||
export function log(...content: unknown[]) {
|
||||
let jeChyba = false;
|
||||
|
||||
const jo = content.map(h => {
|
||||
if (h instanceof Error) return `\x1b[31m${h.stack || h}\x1b[0m`;
|
||||
return h;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user