From 8b0188323527f103c9e6ec82502c30f449d2fad2 Mon Sep 17 00:00:00 2001 From: sarisia Date: Sun, 11 Aug 2024 09:09:31 +0000 Subject: [PATCH] allow transparent (0) color --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 1fbe4fbf..a3f36867 100644 --- a/src/main.ts +++ b/src/main.ts @@ -51,7 +51,7 @@ export function getPayload(inputs: Readonly): Object { const eventDetail = formatEvent(eventName, payload) let embed: { [key: string]: any } = { - color: inputs.color || statusOpts[inputs.status].color + color: isNaN(inputs.color) ? statusOpts[inputs.status].color : inputs.color } if (!inputs.notimestamp) {