Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDiscordV1 ¶
func RegisterDiscordV1(i IDiscordV1)
func RegisterInteractionsV1 ¶
func RegisterInteractionsV1(i IInteractionsV1)
func RegisterSubmitV1 ¶
func RegisterSubmitV1(i ISubmitV1)
func RegisterTaskV1 ¶
func RegisterTaskV1(i ITaskV1)
Types ¶
type IDiscordV1 ¶
type IDiscordV1 interface { Open(ctx context.Context) (*discordgo.Session, error) Close(ctx context.Context, session *discordgo.Session) error }
func DiscordV1 ¶
func DiscordV1() IDiscordV1
type IInteractionsV1 ¶
type IInteractionsV1 interface {
Interactions(ctx context.Context, interactionsReq, result interface{}) error
}
func InteractionsV1 ¶
func InteractionsV1() IInteractionsV1
type ISubmitV1 ¶
type ITaskV1 ¶
type ITaskV1 interface { NewTask(ctx context.Context, action, prompt string, index ...int) (string, error) TaskHandler(ctx context.Context, taskType, messageId, messageContent string, components []discordgo.MessageComponent, messageAttachment *discordgo.MessageAttachment) GetTask(ctx context.Context, taskId string) *model.Task Fetch(ctx context.Context, taskId string) *model.FetchRes }
Click to show internal directories.
Click to hide internal directories.