Versions in this module Expand all Collapse all v1 v1.4.2 May 13, 2020 v1.4.1 May 3, 2020 Changes in this version + const LfmStarImage + const NoArtistURL + func AddEmbedFooter(msg *disgord.Message) (f *disgord.EmbedFooter, t disgord.Time) + func BrandImage(dc *gg.Context) + func CanRun(ctx atlas.Context) bool + func Check(err error) + func CheckStar(sURL string) bool + func DrawStringWithShadow(s string, x float64, y float64, dc *gg.Context) + func DrawWrappedStringWithShadow(s string, x float64, y float64, ax float64, ay float64, width float64, ...) + func GenAvatarURL(user *disgord.User) string + func GenerateMessageURL(guildID disgord.Snowflake, msg *disgord.Message) string + func GetArtistImage(artist Artist) image.Image + func GetArtistImageFromFmArtist(artist lastfm.ArtistGetInfo) image.Image + func GetArtistImageURL(artist Artist) string + func GetArtistImageURLFromFmArtist(artist lastfm.ArtistGetInfo) string + func GetAvatarImage(user *disgord.User) (image.Image, *os.File) + func GetDiscordIDFromMention(mention string) (ID disgord.Snowflake, err error) + func GetExt(filename string) string + func GetLastfmUserInfo(user *disgord.User, lfm *lastfm.API) (lastfm.UserGetInfo, error) + func GetUInt64ID(user *disgord.User) uint64 + func Grab(sURL string) (res *grab.Response, err error) + func HTMLParse(s string) string + func HumanNumber(i interface{}) string + func IsMention(mention string) bool + func JoinString(strs []string, char string) string + func JoinStringMap(strs map[int]string, char string) string + func LocGet(file string) string + func Migrate() + func OpenDB() (*genmai.DB, error) + func OpenImage(filename string) (image.Image, *os.File) + func RandomColor() int + func RegisterEvents(client *atlas.Atlas) + func SaveImage(dc *gg.Context, ctx atlas.Context, name string) (*os.File, error) + func ShortStr(str string, n int, els ...string) string + func SnowflakeToUInt64(snowflake disgord.Snowflake) uint64 + func Storage() string + func StrToSnowflake(str string) disgord.Snowflake + func TagImageName(ctx atlas.Context, name string) string + func UInt64ToSnowflake(i uint64) disgord.Snowflake + func Ucwords(str string) string + type AlbumPosition struct + Info InfoText + Shadow Shadow + X int + Y int + type Artist struct + Images []struct{ ... } + Mbid string + Name string + PlayCount string + Rank string + Streamable string + URL string + type ArtistImages struct + Artist string + ID int64 + MaID int64 + type Artists []struct + type Configuration struct + BotID string + BotOwner string + Database struct{ ... } + ElevatedRole string + GuildID string + Lastfm struct{ ... } + LogChannelID string + Prefix string + Starboard struct{ ... } + Token string + Website struct{ ... } + YouTube struct{ ... } + func Config() Configuration + type Crowns struct + Artist string + DiscordID uint64 + ID int64 + PlayCount int + func GetCrownsList() (crowns []Crowns) + func (c Crowns) GetUserCrowns(sql ...interface{}) (crowns []Crowns) + func (c Crowns) User() (user Users) + type InfoText struct + Plays PlaysText + X float64 + Y float64 + type MaArtist struct + ID int + Name string + func GetMaArtist(artist string) MaArtist + func GetMaArtistList() []MaArtist + type PlaysText struct + X float64 + Y float64 + type Servers struct + ElevatedRole uint64 + GuildID uint64 + ID int64 + LogChannelID uint64 + func GetServer(guildID disgord.Snowflake) (server Servers) + type Shadow struct + R float64 + X float64 + Y float64 + type Time struct + CreatedAt *time.Time + UpdatedAt *time.Time + type TrackPosition struct + Plays PlaysText + X float64 + Y float64 + type Users struct + DiscordID uint64 + DiscordRefreshToken string + DiscordToken string + Email string + ID int64 + Lastfm string + LastfmToken string + RememberToken *string + Username string + func GetUser(user *disgord.User) Users + func GetUserFromString(username string) Users + func GetUsers() []Users + func (c Users) Crown(id int64) Crowns + func (c Users) Crowns() (crowns []Crowns) + func (c Users) Delete() (bool, bool) + func (c Users) GetDiscordID() disgord.Snowflake