deviant

package
v0.0.0-...-1120f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() artworks.Provider

Types

type Artwork

type Artwork struct {
	Title        string
	Author       *Author
	ImageURL     string
	ThumbnailURL string
	Tags         []string
	Views        int
	Favorites    int
	Comments     int
	AIGenerated  bool
	CreatedAt    time.Time
	// contains filtered or unexported fields
}

func (*Artwork) Len

func (a *Artwork) Len() int

func (*Artwork) MessageSends

func (a *Artwork) MessageSends(footer string, tagsEnabled bool) ([]*discordgo.MessageSend, error)

func (*Artwork) StoreArtwork

func (a *Artwork) StoreArtwork() *store.Artwork

func (*Artwork) URL

func (a *Artwork) URL() string

type Author

type Author struct {
	Name string
	URL  string
}

type DeviantArt

type DeviantArt struct {
	// contains filtered or unexported fields
}

func (*DeviantArt) Enabled

func (d *DeviantArt) Enabled(g *store.Guild) bool

func (*DeviantArt) Find

func (d *DeviantArt) Find(id string) (artworks.Artwork, error)

func (*DeviantArt) Match

func (d *DeviantArt) Match(s string) (string, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL