flagdump: add DISABLE_PREMIUM and QUARANTINED
This commit is contained in:
parent
c9a54a999a
commit
afb4a4919a
1 changed files with 3 additions and 2 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Reference in a new issue