flagdump: fix isNaN

This commit is contained in:
Cynthia Foxwell 2024-07-23 17:12:04 -06:00
parent 592b5146ba
commit 43354bcbca

View file

@ -44,7 +44,7 @@ flagdump.callback = async function (msg, line, [numOrMention], {id, list}) {
UserFlagsMapped
)}\`\`\``;
}
} else if (!isNaN(num)) {
} else if (!Number.isNaN(num)) {
return `\`\`\`\n${flagsFromInt(num, UserFlagsMapped)}\`\`\``;
} else {
return `\`${formatUsername(msg.author)}\`'s public flags:\n\`\`\`${flagsFromInt(