Documentation ¶
Index ¶
- func SIXELNoDithering(enc sixel.Encoder)
- type Avatar
- type Image
- type ImageOption
- type ImageStore
- type User
- type UserStoreArray
- type Users
- func (s *Users) DiscordThis(m *discordgo.Message) (n string, c int64)
- func (s *Users) GetUser(guildID, id string) (int, *User)
- func (s *Users) InStore(guildID, id string) bool
- func (s *Users) Populated(guildID string) bool
- func (s *Users) RemoveUser(guildID, id string)
- func (s *Users) UpdateUser(guildID, id, name, nick, discrim string, color int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SIXELNoDithering ¶
func SIXELNoDithering(enc sixel.Encoder)
Types ¶
type Avatar ¶
type Avatar struct {
*ImageStore
}
func NewAvatarStore ¶
func NewAvatarStore() *Avatar
type ImageStore ¶
type ImageStore struct { EncodeOptions []func(enc *sixel.Encoder) ImageOptions []ImageOption // contains filtered or unexported fields }
func NewImageStore ¶
func NewImageStore() *ImageStore
func (*ImageStore) AddImageOptions ¶
func (i *ImageStore) AddImageOptions(f ...ImageOption)
func (*ImageStore) Download ¶
func (i *ImageStore) Download(url string, imageOpts ...ImageOption) (*Image, error)
type Users ¶
type Users struct { sync.RWMutex Guilds map[string]UserStoreArray // contains filtered or unexported fields }
Users stores multiple users
func NewUserCache ¶
func (*Users) DiscordThis ¶
DiscordThis interfaces with DiscordGo
func (*Users) RemoveUser ¶
RemoveUser removes the user from the store
func (*Users) UpdateUser ¶
UpdateUser updates an user
Click to show internal directories.
Click to hide internal directories.