flagdump: add DISABLE_PREMIUM and QUARANTINED

This commit is contained in:
Cynthia Foxwell 2022-07-21 12:47:38 -06:00
parent c9a54a999a
commit afb4a4919a

View file

@ -433,7 +433,7 @@ const USER_FLAGS = [
"CERTIFIED_MODERATOR",
"BOT_HTTP_INTERACTIONS",
"SPAMMER",
undefined,
"DISABLE_PREMIUM",
undefined,
undefined,
undefined,
@ -456,6 +456,7 @@ const USER_FLAGS = [
undefined,
undefined,
"<Verified Phone Number (speculative)>",
"QUARANTINED",
];
function flagFromInt(int) {
@ -490,7 +491,7 @@ flagdump.usage = "[flags or user mention]";
flagdump.callback = async function (msg, line) {
const num = parseInt(line);
if (/<@!?([0-9]*)>/.test(line)) {
const id = line.match(/<@?!([0-9]*)>/)[1];
const id = line.match(/<@!?([0-9]*)>/)[1];
const guild = msg.channel.guild || hf.bot.guilds.get(msg.guildID);
let user = guild && (await guild.fetchMembers({userIDs: [id]}));
if (!user || !user[0]) {