Homepage link
This commit is contained in:
parent
f414dfdb77
commit
d42ef41dc0
@ -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
|
||||
}
|
@ -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}}"> </span></li>
|
||||
<li>Accent Color: {{$.UserAccent}} <span class="colour-block" style="background-color: {{$.UserAccent}}"> </span>
|
||||
</li>
|
||||
<li>Bot: {{.Bot}}</li>
|
||||
<li>Premium: {{.PremiumType}}</li>
|
||||
<li>System: {{.System}}</li>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user