Skip to content

Commit

Permalink
Fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
Swan committed Nov 3, 2024
1 parent 40c5208 commit 7fd4a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webhooks/webhooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func SendClanFirstPlaceWebhook(clan *db.Clan, mapQua *db.MapQua, newScore *db.Cl

embed := discord.NewEmbedBuilder().
SetAuthor(fmt.Sprintf("[%v] %v", clan.Tag, clan.Name),
fmt.Sprintf("https://two.quavergame.com/clan/%v", newScore.ClanId), clan.AvatarURL()).
fmt.Sprintf("https://two.quavergame.com/clans/%v", newScore.ClanId), clan.AvatarURL()).
SetDescription("🏆 Achieved a new first place clan score!\n\n"+
"**Note: Clans is in private beta which is only available to [donators](https://two.quavergame.com/donate).**").
AddField("Map", fmt.Sprintf("[%v](https://two.quavergame.com/mapset/%v/map/%v?type=clan)", mapQua, mapQua.MapsetId, mapQua.Id), false).
Expand All @@ -371,7 +371,7 @@ func SendClanFirstPlaceWebhook(clan *db.Clan, mapQua *db.MapQua, newScore *db.Cl
SetColor(0x00FF00)

if oldScore != nil {
embed.AddField("Previous #1 Holder", fmt.Sprintf("[[%v] %v](https://two.quavergame.com/clan/%v)", oldScore.Clan.Tag, oldScore.Clan.Name, oldScore.ClanId), false)
embed.AddField("Previous #1 Holder", fmt.Sprintf("[[%v] %v](https://two.quavergame.com/clans/%v)", oldScore.Clan.Tag, oldScore.Clan.Name, oldScore.ClanId), false)
}

_, err := clansFirstPlace.CreateMessage(discord.WebhookMessageCreate{
Expand Down

0 comments on commit 7fd4a5d

Please sign in to comment.