bot

package
v0.0.0-...-d91ba48 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetThreadMessage

func GetThreadMessage(threadID string, token string) (string, error)

func StartBot

func StartBot(token string)

Types

type Author

type Author struct {
	ID                   string `json:"id"`
	Username             string `json:"username"`
	Avatar               string `json:"avatar"`
	Discriminator        string `json:"discriminator"`
	PublicFlags          int    `json:"public_flags"`
	Flags                int    `json:"flags"`
	Banner               any    `json:"banner"`
	AccentColor          any    `json:"accent_color"`
	GlobalName           string `json:"global_name"`
	AvatarDecorationData any    `json:"avatar_decoration_data"`
	BannerColor          any    `json:"banner_color"`
}

type ThreadMessage

type ThreadMessage []struct {
	ID              string    `json:"id"`
	Type            int       `json:"type"`
	Content         string    `json:"content"`
	ChannelID       string    `json:"channel_id"`
	Author          Author    `json:"author"`
	Attachments     []any     `json:"attachments"`
	Embeds          []any     `json:"embeds"`
	Mentions        []any     `json:"mentions"`
	MentionRoles    []any     `json:"mention_roles"`
	Pinned          bool      `json:"pinned"`
	MentionEveryone bool      `json:"mention_everyone"`
	Tts             bool      `json:"tts"`
	Timestamp       time.Time `json:"timestamp"`
	EditedTimestamp any       `json:"edited_timestamp"`
	Flags           int       `json:"flags"`
	Components      []any     `json:"components"`
	Position        int       `json:"position"`
}

Jump to

Keyboard shortcuts

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