From afb4a4919aaa9ab8cee8d429524c482beb0d6888 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 21 Jul 2022 12:47:38 -0600 Subject: [PATCH] flagdump: add DISABLE_PREMIUM and QUARANTINED --- src/modules/utility.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index d0d5c50..e9b4fe6 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -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, "", + "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]) {