Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entities ¶
type Entities struct {
Users map[string]User `json:"users"`
Channels map[string]Channel `json:"channels"`
Roles map[string]Role `json:"roles"`
}
Entities Snowflake -> Entity map
func EntitiesFromTranscript ¶
type Message ¶
type Message struct {
Id uint64 `json:"id,string"`
Type message.MessageType `json:"type"`
Author uint64 `json:"author,string"`
Time int64 `json:"time"` // Unix seconds
Content string `json:"content"`
Embeds []embed.Embed `json:"embeds,omitempty"`
Components []component.Component `json:"components,omitempty"`
Attachments []channel.Attachment `json:"attachments,omitempty"`
}
func MessagesFromTranscript ¶
type Payload ¶
type Payload struct {
Entities Entities `json:"entities"`
Messages []Message `json:"messages"`
ChannelName string `json:"channel_name"`
}
func FromArchiveMessages ¶
func FromTranscript ¶
func FromTranscript(transcript v2.Transcript, ticketId int) Payload
Click to show internal directories.
Click to hide internal directories.