Skip to content

Commit

Permalink
allow transparent (0) color
Browse files Browse the repository at this point in the history
  • Loading branch information
sarisia committed Aug 11, 2024
1 parent 42796fc commit 8b01883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function getPayload(inputs: Readonly<Inputs>): 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) {
Expand Down

0 comments on commit 8b01883

Please sign in to comment.