Documentation ¶
Index ¶
- func ColorUint(s string) uint32
- func MaxChar(n int64) func(*Anilist)
- func NoCache(a *Anilist)
- type Anilist
- func (a *Anilist) Anime(ctx context.Context, title string) ([]discord.Media, error)
- func (a *Anilist) Character(ctx context.Context, name string) ([]discord.MediaCharacter, error)
- func (a *Anilist) Manga(ctx context.Context, title string) ([]discord.Media, error)
- func (a *Anilist) RandomChar(ctx context.Context, notIn ...int64) (discord.MediaCharacter, error)
- func (a *Anilist) User(ctx context.Context, name string) ([]discord.TrackerUser, error)
- type MediaType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorUint ¶
ColorUint Turn an hex color string beginning with a # into a uint32 representing a color.
Types ¶
type Anilist ¶
type Anilist struct { MaxChars int64 // contains filtered or unexported fields }
Anilist defines a common interface to interact with anilist
func (*Anilist) RandomChar ¶
RandomChar returns a random char
Click to show internal directories.
Click to hide internal directories.