utility: attempt fix flagsFromInt

This commit is contained in:
Cynthia Foxwell 2023-10-07 22:20:24 -06:00
parent 82106f0dd2
commit 5f7d064750
1 changed files with 4 additions and 4 deletions

View File

@ -383,9 +383,9 @@ function flagsFromInt(int, flags, withRaw = true) {
for (const flag of assignedFlags) { for (const flag of assignedFlags) {
out.push( out.push(
(flags[flag] || "<Undocumented Flag>") + withRaw `${flags[flag] ?? "<Undocumented Flag>"}${
? ` (1 << ${flag}, ${1n << BigInt(flag)})` withRaw == true ? ` (1 << ${flag}, ${1n << BigInt(flag)})` : ""
: "" }`
); );
} }
@ -1433,7 +1433,7 @@ appinfo.callback = async function (msg, line) {
fields: [ fields: [
{ {
name: "Created", name: "Created",
value: `<t:${snowflakeToTimestamp(app.id)}:R>`, value: `<t:${Math.floor(snowflakeToTimestamp(app.id) / 1000)}:R>`,
inline: true, inline: true,
}, },
], ],