-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessage_type.go
43 lines (37 loc) · 1.2 KB
/
message_type.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package midjourney
type Message struct {
Type int `json:"type"`
ID string `json:"id"`
Content string `json:"content"`
ChannelID string `json:"channel_id"`
Author MessageAuthor `json:"author"`
Attachments []MessageAttachement `json:"attachments"`
Mentions []MessageMention `json:"mentions"`
Components []MessageComponent `json:"components"`
}
type MessageAuthor struct {
ID string `json:"id"`
}
type MessageAttachement struct {
ID string `json:"id"`
Filename string `json:"filename"`
Size int `json:"size"`
Url string `json:"url"`
ProxyURL string `json:"proxy_url"`
Width int `json:"width"`
Height int `json:"height"`
ContentType string `json:"content_type"`
}
type MessageMention struct {
ID string `json:"id"`
}
type MessageComponent struct {
Type int `json:"type"`
Components []MessageComponentNestedComponent `json:"components"`
}
type MessageComponentNestedComponent struct {
Type int `json:"type"`
CustomID string `json:"custom_id"`
Style int `json:"style"`
Label string `json:"label"`
}