mirror of
https://github.com/automuteus/automuteus.git
synced 2025-03-14 10:29:29 +00:00
Hotfix raw github image URLs
This commit is contained in:
@ -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,
|
||||
|
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user