Skip to content

Commit

Permalink
feat: add icons to leaderboard & winner ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
0xwal committed Nov 7, 2023
1 parent 386df98 commit 334ff53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/discord-challenge-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export class DiscordChallengeManager {
const userScore = repo.getUserScore(author.id)?.score ?? 0;

embeds[0].fields.push({name: "⠀", value: "⠀"});
embeds[0].fields.push({name: "الفائز 🏆", value: `🏅 <@${author.id}> | ${userScore}`});
embeds[0].fields.push({name: "الفائز 🏆", value: `<@${author.id}> 🪙 **${userScore}**`});
embeds[0].fields.push({name: "⠀", value: "⠀"});

// add leaderboard
Expand All @@ -94,8 +94,8 @@ export class DiscordChallengeManager {
const user = leaderboards[i];
const icon = icons.shift();
embeds[0].fields.push({
name: icon ?? (i + 1).toString(),
value: `<@${user.id}> | ${user.score}`,
name: '',
value: `${icon} <@${user.id}> 🪙 **${user.score}**`,
inline: false
});
}
Expand Down

0 comments on commit 334ff53

Please sign in to comment.