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>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Discord | Melon Tools</h1>
|
<h1>Discord | <a href="/">Melon Tools</a></h1>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div>
|
<div>
|
||||||
{{with .User}}
|
{{with .User}}
|
||||||
@ -54,7 +54,8 @@
|
|||||||
<li>Verified: {{.Verified}}</li>
|
<li>Verified: {{.Verified}}</li>
|
||||||
<li>MFA: {{.MFAEnabled}}</li>
|
<li>MFA: {{.MFAEnabled}}</li>
|
||||||
<li>Banner: {{.Banner}}</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>Bot: {{.Bot}}</li>
|
||||||
<li>Premium: {{.PremiumType}}</li>
|
<li>Premium: {{.PremiumType}}</li>
|
||||||
<li>System: {{.System}}</li>
|
<li>System: {{.System}}</li>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Gitea | Melon Tools</h1>
|
<h1>Gitea | <a href="/">Melon Tools</a></h1>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div>
|
<div>
|
||||||
<p>Select repository source:</p>
|
<p>Select repository source:</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user