Documentation
¶
Index ¶
- type DSApplicationCommand
- type DSCommand
- type DSCommandOption
- type DSOption
- type MidJourney
- func (m *MidJourney) GenerateImage(prompt string) error
- func (m *MidJourney) MaxUpscale(messageId string, messageHash string) error
- func (m *MidJourney) Reset(messageId string, messageHash string) error
- func (m *MidJourney) Serve()
- func (m *MidJourney) Upscale(index int64, messageId string, messageHash string) error
- func (m *MidJourney) Variate(index int64, messageId string, messageHash string) error
- type ReqResetDiscord
- type ReqTriggerDiscord
- type ReqUpscaleDiscord
- type ReqVariationDiscord
- type UpscaleData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSApplicationCommand ¶
type DSApplicationCommand struct { Id string `json:"id"` ApplicationId string `json:"application_id"` Version string `json:"version"` DefaultPermission bool `json:"default_permission"` DefaultMemberPermissions map[string]int `json:"default_member_permissions"` Type int64 `json:"type"` Nsfw bool `json:"nsfw"` Name string `json:"name"` Description string `json:"description"` DmPermission bool `json:"dm_permission"` Options []DSCommandOption `json:"options"` }
type DSCommandOption ¶
type MidJourney ¶
type MidJourney struct { GuildID string // DiscordServerId ChannelID int64 // DiscordChannelId ApplicationId string // DiscordAppId SessionId string // DiscordSessionId UserToken string // DiscordUserToken BotToken string // DiscordBotToken // contains filtered or unexported fields }
func New ¶
func New(cfg config.MidJourney, handlers ...any) *MidJourney
func (*MidJourney) GenerateImage ¶
func (m *MidJourney) GenerateImage(prompt string) error
func (*MidJourney) MaxUpscale ¶
func (m *MidJourney) MaxUpscale(messageId string, messageHash string) error
func (*MidJourney) Serve ¶
func (m *MidJourney) Serve()
type ReqResetDiscord ¶
type ReqResetDiscord = ReqUpscaleDiscord
type ReqTriggerDiscord ¶
type ReqUpscaleDiscord ¶
type ReqUpscaleDiscord struct { Type int64 `json:"type"` GuildId string `json:"guild_id"` ChannelId string `json:"channel_id"` MessageFlags int64 `json:"message_flags"` MessageId string `json:"message_id"` ApplicationId string `json:"application_id"` SessionId string `json:"session_id"` Data UpscaleData `json:"data"` }
type ReqVariationDiscord ¶
type ReqVariationDiscord = ReqUpscaleDiscord
type UpscaleData ¶
Click to show internal directories.
Click to hide internal directories.