Homepage link

This commit is contained in:
Melon 2022-05-16 12:54:08 +01:00
parent f414dfdb77
commit d42ef41dc0
Signed by: melon
GPG Key ID: B0ADD5395BCDAAB6
3 changed files with 92 additions and 108 deletions

View File

@ -1,17 +0,0 @@
package discord
import (
"bytes"
"github.com/bwmarrin/discordgo"
"image"
)
func getGuildIcon(s *discordgo.Session, guild *discordgo.UserGuild) (image.Image, error) {
body, err := s.RequestWithBucketID("GET", discordgo.EndpointGuildIcon(guild.ID, guild.Icon), nil, discordgo.EndpointGuildIcon(guild.ID, ""))
if err != nil {
return nil, nil
}
img, _, err := image.Decode(bytes.NewReader(body))
return img, err
}

View File

@ -39,7 +39,7 @@
</style>
</head>
<body>
<h1>Discord | Melon Tools</h1>
<h1>Discord | <a href="/">Melon Tools</a></h1>
<div class="page-content">
<div>
{{with .User}}
@ -54,7 +54,8 @@
<li>Verified: {{.Verified}}</li>
<li>MFA: {{.MFAEnabled}}</li>
<li>Banner: {{.Banner}}</li>
<li>Accent Color: {{$.UserAccent}} <span class="colour-block" style="background-color: {{$.UserAccent}}">&nbsp;</span></li>
<li>Accent Color: {{$.UserAccent}} <span class="colour-block" style="background-color: {{$.UserAccent}}">&nbsp;</span>
</li>
<li>Bot: {{.Bot}}</li>
<li>Premium: {{.PremiumType}}</li>
<li>System: {{.System}}</li>

View File

@ -22,7 +22,7 @@
</style>
</head>
<body>
<h1>Gitea | Melon Tools</h1>
<h1>Gitea | <a href="/">Melon Tools</a></h1>
<div class="page-content">
<div>
<p>Select repository source:</p>