1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-discord.git synced 2024-12-22 20:36:45 +00:00
cchat-discord/logo.go

21 lines
431 B
Go
Raw Normal View History

2020-10-07 01:53:15 +00:00
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
}