pixiv

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(proxyHost, authToken, refreshToken string) (artworks.Provider, error)

Types

type Artwork

type Artwork struct {
	ID          string
	Type        string
	Author      string
	Title       string
	Likes       int
	Pages       int
	Tags        []string
	Images      []*Image
	NSFW        bool
	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 Image

type Image struct {
	Preview  string
	Original string
}

type Pixiv

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

func (*Pixiv) Enabled

func (p *Pixiv) Enabled(g *store.Guild) bool

func (*Pixiv) Find

func (p *Pixiv) Find(id string) (artworks.Artwork, error)

func (*Pixiv) Match

func (p *Pixiv) Match(s string) (string, bool)

Jump to

Keyboard shortcuts

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