midjourney

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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(client *discord.Client, channelID string, guildID string, debug bool) (ai.Client, error)

Types

type Client

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

func (*Client) Concurrency

func (c *Client) Concurrency() int

func (*Client) Imagine

func (c *Client) Imagine(ctx context.Context, prompt string) (*ai.Preview, error)

func (*Client) ReadErrorChan added in v1.0.1

func (c *Client) ReadErrorChan() chan error

func (*Client) Start

func (c *Client) Start(ctx context.Context) error

func (*Client) Upscale

func (c *Client) Upscale(ctx context.Context, preview *ai.Preview, index int) (string, error)

func (*Client) Variation

func (c *Client) Variation(ctx context.Context, preview *ai.Preview, index int) (*ai.Preview, error)

Jump to

Keyboard shortcuts

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