user cmd now displays discord badges
This commit is contained in:
parent
816e39df5c
commit
9a8c889234
2 changed files with 17 additions and 2 deletions
|
@ -25,7 +25,10 @@ module.exports = class Avatar extends Command {
|
||||||
const badges = [];
|
const badges = [];
|
||||||
if (client.config.devIds.includes(user.id)) badges.push('<:Woomy_Developer:816822318289518622> ');
|
if (client.config.devIds.includes(user.id)) badges.push('<:Woomy_Developer:816822318289518622> ');
|
||||||
if (user.id === member.guild.ownerId) badges.push('<:owner:685703193694306331>');
|
if (user.id === member.guild.ownerId) badges.push('<:owner:685703193694306331>');
|
||||||
if (user.bot) badges.push('<:bot:686489601678114859>');
|
|
||||||
|
user.flags?.toArray().forEach(flag => {
|
||||||
|
badges.push(`${client.config.emojis[flag] ?? flag}`);
|
||||||
|
});
|
||||||
|
|
||||||
const roles = [];
|
const roles = [];
|
||||||
for (const roleId of member._roles) {
|
for (const roleId of member._roles) {
|
||||||
|
|
|
@ -27,6 +27,18 @@
|
||||||
"botError": "<:warning:701681841190600704>",
|
"botError": "<:warning:701681841190600704>",
|
||||||
"userError": "<:error:466995152976871434>",
|
"userError": "<:error:466995152976871434>",
|
||||||
"permError": "<:denied:466995195150336020>",
|
"permError": "<:denied:466995195150336020>",
|
||||||
"wait": "<:wait:467115775849922570>"
|
"wait": "<:wait:467115775849922570>",
|
||||||
|
"ActiveDeveloper": "<:ActiveDeveloper:1053643399477084261>",
|
||||||
|
"VerifiedDeveloper": "<:VerifiedDeveloper:1053643383631003709>",
|
||||||
|
"BugHunterLevel1": "<:BugHunterLevel1:1053643390853595186>",
|
||||||
|
"BugHunterLevel2": "<:BugHunterLevel2:1053643388836130826>",
|
||||||
|
"CertifiedModerator": "<:CertifiedModerator:1053643397103104070>",
|
||||||
|
"HypeSquadOnlineHouse1": "<:HypeSquadOnlineHouse1:1053643379948400730>",
|
||||||
|
"HypeSquadOnlineHouse2": "<:HypeSquadOnlineHouse2:1053643378253897758>",
|
||||||
|
"HypeSquadOnlineHouse3": "<:HypeSquadOnlineHouse3:1053643381823246388>",
|
||||||
|
"Hypesquad": "<:Hypesquad:1053643395215663144>",
|
||||||
|
"Partner": "<:Partner:1053643375921860618>",
|
||||||
|
"PremiumEarlySupporter": "<:PremiumEarlySupporter:1053643386550243338>",
|
||||||
|
"Staff": "<:Staff:1053643393248534652>"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue