Versions in this module Expand all Collapse all v0 v0.1.0 Nov 5, 2023 Changes in this version type MjDTO + TelegramFileId *string v0.0.19 Oct 10, 2023 Changes in this version + const MJGenerate + const MJMaxUpscale + const MJReset + const MJUpscale + const MJVariate + const StatusCompleted + const StatusFailed + const StatusPending + const StatusProcessing + func CreateMsg(s *discordgo.Session, m *discordgo.MessageCreate) + func UpdateMsg(s *discordgo.Session, m *discordgo.MessageUpdate) + type JobMessage struct + Action string + Channel int64 + Id string + MessageHash string + MessageId string + MessageImageIdx int64 + Prompt string + SourceClient string + type MidJourney struct + Client *midjourney.MidJourney + Dao *daos.Dao + func GetDefaultClient() *MidJourney + func New(dao *daos.Dao) *MidJourney + func (m *MidJourney) ProcessMessage(msg *JobMessage) (job *MjDTO, err error) + type MjDTO struct + Action *string + ChannelID *int64 + ImageContentType *string + ImageHeight *int64 + ImageName *string + ImageSize *int64 + ImageUrl *string + ImageWidth *int64 + MessageContent *string + MessageHash *string + MessageID *string + MessageImageIdx *int64 + Prompt *string + Status *string + func CreateJobRecord(tx *daos.Dao, mj MjDTO) (*MjDTO, error) + func GetJobRecord(tx *daos.Dao, id string) (*MjDTO, error) + func GetProcessingJobRecordByChannelIDAndStatus(tx *daos.Dao, id, status string) (*MjDTO, error) + func UpdateJobRecord(tx *daos.Dao, mj MjDTO) (*MjDTO, error) + func (m MjDTO) TableName() string + type Scene string + const GenerateEditError + const GenerateEnd + const GenerateProcessing + const GenerateStart