Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/embeds/skin.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { EmbedBuilder } from 'discord.js';

import { fetchWeaponFromSkin } from '../utils/weapons.js';
import { getTierName, getTierPrice } from '../utils/tiers.js';
import { getTier, getTierPrice } from '../utils/tiers.js';

export async function createSkinEmbed(skin) {
const chromas = skin.chromas?.length || 0;
const price = getTierPrice(skin.contentTierUuid);
const tier = skin.contentTierUuid
? getTierName(skin.contentTierUuid)
? getTier(skin.contentTierUuid)
: 'Unknown';
const weapon = await fetchWeaponFromSkin(skin);
const skinName = skin.displayName;
Expand Down
16 changes: 8 additions & 8 deletions src/utils/tiers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ const tierNames = {
"411e4a55-4e59-7757-41f0-86a53f101bb5": "Ultra"
};

const tierEmotes = {
"Select": "<:SelectTier:IDHERE>",
"Deluxe": "<:DeluxeTier:IDHERE>",
"Premium": "<:PremiumTier:IDHERE>",
"Exclusive": "<:ExclusiveTier:IDHERE>",
"Ultra": "<:UltraTier:IDHERE>"
};

const tierPrices = {
"Select" : "875 VP",
"Deluxe" : "1275 VP",
Expand All @@ -22,6 +14,14 @@ const tierPrices = {
"Ultra" : "Varies"
};

const tierEmotes = {
"Select": "<:select:1464237592022351932>",
"Deluxe": "<:deluxe:1464237687543435297>",
"Premium": "<:premium:1464237631079583858>",
"Exclusive": "<:exclusive:1464237651484737566>",
"Ultra": "<:ultra:1464237480461991988>"
};

// Fetches names of skin tiers based on their UUIDs.
export function getTier(uuid) {
const name = tierNames[uuid] || 'Unknown';
Expand Down