update #1 log embed
Some checks are pending
Deploy Backend / deploy (push) Waiting to run

This commit is contained in:
Lee 2024-10-18 10:32:13 +01:00
parent 3a734075e0
commit 8713ee3e02

@ -20,6 +20,7 @@ import Score from "@ssr/common/score/score";
import PlayerScoresResponse from "@ssr/common/response/player-scores-response";
import { DiscordChannels, logToChannel } from "../bot/bot";
import { EmbedBuilder } from "discord.js";
import { Config } from "@ssr/common/config";
export class ScoreService {
/**
@ -56,7 +57,10 @@ export class ScoreService {
new EmbedBuilder()
.setTitle(`${player.name} just set a #1!`)
.setDescription(
`${leaderboard.songName} ${leaderboard.songSubName} (${leaderboard.difficulty.difficulty} ${leaderboard.stars.toFixed(2)}★)`
[
`${leaderboard.songName} ${leaderboard.songSubName} (${leaderboard.difficulty.difficulty} ${leaderboard.stars.toFixed(2)}★)`,
`([Player])(${Config.websiteUrl}/player/${player.id}) ([Leaderboard])(${Config.websiteUrl}/leaderboard/${leaderboard.id})`,
].join("\n")
)
.addFields([
{