mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
update badge icons
This commit is contained in:
parent
38642e09f0
commit
7daca3a1b3
3 changed files with 32 additions and 14 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
const { BADGE_ICONS } = require("../../../labscore/constants");
|
||||||
const { createEmbed } = require("../../../labscore/utils/embed");
|
const { createEmbed } = require("../../../labscore/utils/embed");
|
||||||
const { icon, highlight, timestamp, smallIconPill, smallPill } = require("../../../labscore/utils/markdown");
|
const { icon, highlight, timestamp, smallIconPill, smallPill } = require("../../../labscore/utils/markdown");
|
||||||
const { editOrReply } = require("../../../labscore/utils/message");
|
const { editOrReply } = require("../../../labscore/utils/message");
|
||||||
|
@ -61,7 +62,7 @@ module.exports = {
|
||||||
userCard.fields[0].value = userCard.fields[0].value + `\n**Joined Guild: **${timestamp(m.joinedAt, "f")}`
|
userCard.fields[0].value = userCard.fields[0].value + `\n**Joined Guild: **${timestamp(m.joinedAt, "f")}`
|
||||||
let guildFields = []
|
let guildFields = []
|
||||||
|
|
||||||
if(m.isOwner) guildFields.push(`**Server Owner** <:lc_guild_owner:674652779406426122>`)
|
if(m.isOwner) guildFields.push(`**Server Owner**`)
|
||||||
if(m.roles.length >= 1) guildFields.push(`**Roles: ** ${m.roles.length}/${context.guild.roles.length}`)
|
if(m.roles.length >= 1) guildFields.push(`**Roles: ** ${m.roles.length}/${context.guild.roles.length}`)
|
||||||
if(m.premiumSince) guildFields.push(`**Boosting since: ** ${timestamp(m.premiumSince, 'f')}`)
|
if(m.premiumSince) guildFields.push(`**Boosting since: ** ${timestamp(m.premiumSince, 'f')}`)
|
||||||
userCard.fields.push({
|
userCard.fields.push({
|
||||||
|
@ -73,7 +74,7 @@ module.exports = {
|
||||||
|
|
||||||
// Badge Container
|
// Badge Container
|
||||||
let b = renderBadges(u)
|
let b = renderBadges(u)
|
||||||
if(u.avatarUrl.endsWith('.gif') || u.banner){ b.push('<:badge_nitro:917012997463998485>' )}
|
if(u.avatarUrl.endsWith('.gif') || u.banner){ b.push(BADGE_ICONS.nitro)}
|
||||||
if(b.length >= 1){
|
if(b.length >= 1){
|
||||||
userCard.fields.push({
|
userCard.fields.push({
|
||||||
name: `${icon("nitro")} Badges`,
|
name: `${icon("nitro")} Badges`,
|
||||||
|
|
|
@ -103,6 +103,21 @@ module.exports.ICONS = Object.freeze({
|
||||||
"gitlab": "<:ico_gitlab:1130603378704138411>"
|
"gitlab": "<:ico_gitlab:1130603378704138411>"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
module.exports.BADGE_ICONS = Object.freeze({
|
||||||
|
"active_developer": "<:b:1165742549865074909>",
|
||||||
|
"bot_developer": "<:b:1165741989950672977>",
|
||||||
|
"bug_hunter": "<:b:1165741991464804582>",
|
||||||
|
"bug_hunter_lvl2": "<:b:1165741993436139620>",
|
||||||
|
"early_supporter": "<:b:1165741996208570368>",
|
||||||
|
"hypesquad_events": "<:b:1165741998507032657>",
|
||||||
|
"hypesquad_balance": "<:b:1165742000008605746>",
|
||||||
|
"hypesquad_bravery": "<:b:1165742001388535828>",
|
||||||
|
"hypesquad_brilliance": "<:b:1165742003393405048>",
|
||||||
|
"mod_program": "<:b:1165743361106378872> ",
|
||||||
|
"nitro": "<:b:1165743359013441656>",
|
||||||
|
"partner": "<:b:1165742007122149437>",
|
||||||
|
"staff": "<:b:1165741987773812746>"
|
||||||
|
})
|
||||||
|
|
||||||
module.exports.REDESIGN_ICONS = Object.freeze({
|
module.exports.REDESIGN_ICONS = Object.freeze({
|
||||||
"home": "<:ico_home:1165257185488551976>",
|
"home": "<:ico_home:1165257185488551976>",
|
||||||
|
|
|
@ -39,66 +39,68 @@ async function getMember(context, query){
|
||||||
const { Constants } = require('detritus-client');
|
const { Constants } = require('detritus-client');
|
||||||
const { UserFlags } = Constants
|
const { UserFlags } = Constants
|
||||||
|
|
||||||
|
const { BADGE_ICONS } = require('../constants');
|
||||||
|
|
||||||
const BADGE_TYPES = Object.freeze({
|
const BADGE_TYPES = Object.freeze({
|
||||||
"staff": {
|
"staff": {
|
||||||
description: "Discord Staff",
|
description: "Discord Staff",
|
||||||
link: "https://discord.com/company",
|
link: "https://discord.com/company",
|
||||||
icon: "<:b:903276633161609246>"
|
icon: BADGE_ICONS.staff
|
||||||
},
|
},
|
||||||
"partner": {
|
"partner": {
|
||||||
description: "Partnered Server Owner",
|
description: "Partnered Server Owner",
|
||||||
link: "https://discord.com/partners",
|
link: "https://discord.com/partners",
|
||||||
icon: "<:b:903276631559389196>"
|
icon: BADGE_ICONS.partner
|
||||||
},
|
},
|
||||||
"certified_moderator": {
|
"certified_moderator": {
|
||||||
description: "Moderator Programs Alumni",
|
description: "Moderator Programs Alumni",
|
||||||
link: "https://discord.com/safety",
|
link: "https://discord.com/safety",
|
||||||
icon: "<:b:1049594117849632778>"
|
icon: BADGE_ICONS.mod_program
|
||||||
},
|
},
|
||||||
"hypesquad": {
|
"hypesquad": {
|
||||||
description: "HypeSquad Events",
|
description: "HypeSquad Events",
|
||||||
link: "https://discord.com/hypesquad",
|
link: "https://discord.com/hypesquad",
|
||||||
icon: "<:b:903276631408394351>"
|
icon: BADGE_ICONS.hypesquad
|
||||||
},
|
},
|
||||||
"hypesquad_house_1": {
|
"hypesquad_house_1": {
|
||||||
description: "HypeSquad Bravery",
|
description: "HypeSquad Bravery",
|
||||||
link: "https://discord.com/settings/hypesquad-online",
|
link: "https://discord.com/settings/hypesquad-online",
|
||||||
icon: "<:b:903276631790059540>"
|
icon: BADGE_ICONS.hypesquad_bravery
|
||||||
},
|
},
|
||||||
"hypesquad_house_2": {
|
"hypesquad_house_2": {
|
||||||
description: "HypeSquad Brilliance",
|
description: "HypeSquad Brilliance",
|
||||||
link: "https://discord.com/settings/hypesquad-online",
|
link: "https://discord.com/settings/hypesquad-online",
|
||||||
icon: "<:b:903276631261597706>"
|
icon: BADGE_ICONS.hypesquad_brilliance
|
||||||
},
|
},
|
||||||
"hypesquad_house_3": {
|
"hypesquad_house_3": {
|
||||||
description: "HypeSquad Balance",
|
description: "HypeSquad Balance",
|
||||||
link: "https://discord.com/settings/hypesquad-online",
|
link: "https://discord.com/settings/hypesquad-online",
|
||||||
icon: "<:b:903276631211249674>"
|
icon: BADGE_ICONS.hypesquad_balance
|
||||||
},
|
},
|
||||||
"bug_hunter_level_1": {
|
"bug_hunter_level_1": {
|
||||||
description: "Discord Bug Hunter",
|
description: "Discord Bug Hunter",
|
||||||
link: "https://support.discord.com/hc/en-us/articles/360046057772-Discord-Bugs",
|
link: "https://support.discord.com/hc/en-us/articles/360046057772-Discord-Bugs",
|
||||||
icon: "<:b:903276631173509131>"
|
icon: BADGE_ICONS.bug_hunter
|
||||||
},
|
},
|
||||||
"bug_hunter_level_2": {
|
"bug_hunter_level_2": {
|
||||||
description: "Discord Bug Hunter",
|
description: "Discord Bug Hunter",
|
||||||
link: "https://support.discord.com/hc/en-us/articles/360046057772-Discord-Bugs",
|
link: "https://support.discord.com/hc/en-us/articles/360046057772-Discord-Bugs",
|
||||||
icon: "<:b:903276883523797033>"
|
icon: BADGE_ICONS.bug_hunter_lvl2
|
||||||
},
|
},
|
||||||
"active_developer": {
|
"active_developer": {
|
||||||
description: "Active Developer",
|
description: "Active Developer",
|
||||||
link: "https://support-dev.discord.com/hc/en-us/articles/10113997751447?ref=badge",
|
link: "https://support-dev.discord.com/hc/en-us/articles/10113997751447?ref=badge",
|
||||||
icon: "<:b:1112811846009892915>"
|
icon: BADGE_ICONS.active_developer
|
||||||
},
|
},
|
||||||
"verified_developer": {
|
"verified_developer": {
|
||||||
description: "Early Verified Bot Developer",
|
description: "Early Verified Bot Developer",
|
||||||
icon: "<:b:903276631173509130>",
|
icon: BADGE_ICONS.bot_developer,
|
||||||
link: "https://discord.com/developers" //not on the actual badge, added for consistency
|
link: "https://discord.com/developers" //not on the actual badge, added for consistency
|
||||||
},
|
},
|
||||||
"early_supporter": {
|
"early_supporter": {
|
||||||
description: "Early Supporter",
|
description: "Early Supporter",
|
||||||
link: "https://discord.com/settings/premium",
|
link: "https://discord.com/settings/premium",
|
||||||
icon: "<:b:903277590956101672>"
|
icon: BADGE_ICONS.early_supporter
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue