36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
// Module ID: 5697
|
|
// Function ID: 49007
|
|
// Name: BadgeCategory
|
|
// Dependencies: [2365587463, 905969666]
|
|
// Exports: getBadgeCategory
|
|
|
|
// Module 5697 (BadgeCategory)
|
|
const obj = { PARTNERED: 0, [0]: "PARTNERED", VERIFIED: 1, [1]: "VERIFIED", VERIFIED_AND_PARTNERED: 2, [2]: "VERIFIED_AND_PARTNERED", COMMUNITY: 3, [3]: "COMMUNITY", DISCOVERABLE: 4, [4]: "DISCOVERABLE", STAFF: 5, [5]: "STAFF", NONE: 6, [6]: "NONE" };
|
|
const _module = require(dependencyMap[1]);
|
|
const result = _module.fileFinishedImporting("modules/guild_badge/BadgeCategory.tsx");
|
|
|
|
export const BadgeCategory = obj;
|
|
export const getBadgeCategory = function getBadgeCategory(guildTraits) {
|
|
if (guildTraits.staff) {
|
|
let DISCOVERABLE = obj.STAFF;
|
|
} else {
|
|
if (guildTraits.verified) {
|
|
if (guildTraits.partnered) {
|
|
DISCOVERABLE = obj.VERIFIED_AND_PARTNERED;
|
|
}
|
|
}
|
|
if (guildTraits.verified) {
|
|
DISCOVERABLE = obj.VERIFIED;
|
|
} else if (guildTraits.partnered) {
|
|
DISCOVERABLE = obj.PARTNERED;
|
|
} else {
|
|
if (guildTraits.community) {
|
|
if (guildTraits.visibility === require(dependencyMap[0]).GuildVisibility.PUBLIC) {
|
|
DISCOVERABLE = obj.DISCOVERABLE;
|
|
}
|
|
}
|
|
DISCOVERABLE = guildTraits.community ? tmp3.COMMUNITY : tmp3.NONE;
|
|
}
|
|
}
|
|
return DISCOVERABLE;
|
|
};
|