discord

package
v0.0.0-...-66bbac4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context)

Types

type DiscordWriter

type DiscordWriter struct {
	Context context.Context
	Prompt  string
	Bot     *discordgo.Session
	ChatID  string
	Type    string
	ReplyID string
	Message *memory.Message
	// contains filtered or unexported fields
}

func NewDiscordWriter

func NewDiscordWriter(ctx context.Context, msg *memory.Message, reply bool, prompt ...string) *DiscordWriter

func (*DiscordWriter) Close

func (w *DiscordWriter) Close() error

func (*DiscordWriter) Flush

func (w *DiscordWriter) Flush()

func (*DiscordWriter) GetObjects

func (*DiscordWriter) Header

func (w *DiscordWriter) Header() http.Header

func (*DiscordWriter) SetPreWriteCallback

func (w *DiscordWriter) SetPreWriteCallback(fn func())

func (*DiscordWriter) SetPrompt

func (w *DiscordWriter) SetPrompt(prompt string)

func (*DiscordWriter) Write

func (w *DiscordWriter) Write(p []byte) (n int, err error)

func (*DiscordWriter) WriteHeader

func (w *DiscordWriter) WriteHeader(int)

func (*DiscordWriter) WriteObject

Jump to

Keyboard shortcuts

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