mirror of
https://github.com/diamondburned/cchat-discord.git
synced 2024-12-22 20:36:45 +00:00
21 lines
431 B
Go
21 lines
431 B
Go
|
package discord
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/diamondburned/cchat"
|
||
|
)
|
||
|
|
||
|
const LogoURL = "https://raw.githubusercontent.com/" +
|
||
|
"diamondburned/cchat-discord/himearikawa/discord_logo.png"
|
||
|
|
||
|
// Logo implements cchat.Iconer for the Discord logo.
|
||
|
var Logo cchat.Iconer = logo{}
|
||
|
|
||
|
type logo struct{}
|
||
|
|
||
|
func (logo) Icon(ctx context.Context, iconer cchat.IconContainer) (func(), error) {
|
||
|
iconer.SetIcon(LogoURL)
|
||
|
return func() {}, nil
|
||
|
}
|