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