From 5f7d06475057f729b0ac4137bf7fc5b13e2e1964 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 7 Oct 2023 22:20:24 -0600 Subject: [PATCH] utility: attempt fix flagsFromInt --- src/modules/utility.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index c9e47ec..ac07802 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -383,9 +383,9 @@ function flagsFromInt(int, flags, withRaw = true) { for (const flag of assignedFlags) { out.push( - (flags[flag] || "") + withRaw - ? ` (1 << ${flag}, ${1n << BigInt(flag)})` - : "" + `${flags[flag] ?? ""}${ + withRaw == true ? ` (1 << ${flag}, ${1n << BigInt(flag)})` : "" + }` ); } @@ -1433,7 +1433,7 @@ appinfo.callback = async function (msg, line) { fields: [ { name: "Created", - value: ``, + value: ``, inline: true, }, ],