Hotfix raw github image URLs

This commit is contained in:
denverquane
2024-09-26 12:59:13 -07:00
parent 8577d604c0
commit 8101a64605
2 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ func HelpEmbedResponse(commands []*discordgo.ApplicationCommand, sett *settings.
Color: 15844367, // GOLD
Image: nil,
Thumbnail: &discordgo.MessageEmbedThumbnail{
URL: "https://github.com/automuteus/automuteus/v7/blob/master/assets/BotProfilePicture.png?raw=true",
URL: "https://raw.githubusercontent.com/automuteus/automuteus/refs/heads/master/assets/BotProfilePicture.png",
ProxyURL: "",
Width: 0,
Height: 0,

View File

@ -4,7 +4,7 @@ import "fmt"
type PlayMap int
const DefaultMapsUrl = "https://github.com/automuteus/automuteus/blob/master/assets/maps/"
const DefaultMapsUrl = "https://raw.githubusercontent.com/automuteus/automuteus/refs/heads/master/assets/maps/"
const (
SKELD PlayMap = iota
@ -55,7 +55,7 @@ func FormMapUrl(baseUrl string, mapType PlayMap, detailed bool) string {
}
// only have the simple variant of dleks
if detailed && mapType != DLEKS {
return fmt.Sprintf("%s%s_detailed.png?raw=true", baseUrl, mapString)
return fmt.Sprintf("%s%s_detailed.png", baseUrl, mapString)
}
return fmt.Sprintf("%s%s.png?raw=true", baseUrl, mapString)
return fmt.Sprintf("%s%s.png", baseUrl, mapString)
}