-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentity.go
59 lines (56 loc) · 2.27 KB
/
entity.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package midjourney
type Payload struct {
Type int `json:"type"`
ApplicationID string `json:"application_id"`
GuildID string `json:"guild_id"`
ChannelID string `json:"channel_id"`
SessionID string `json:"session_id"`
Data Data `json:"data"`
}
type Options struct {
Type int `json:"type"`
Name string `json:"name"`
Value string `json:"value"`
}
type ApplicationCommandOptions struct {
Type int `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
Required bool `json:"required"`
}
type ApplicationCommand struct {
ID string `json:"id"`
ApplicationID string `json:"application_id"`
Version string `json:"version"`
DefaultMemberPermissions interface{} `json:"default_member_permissions"`
Type int `json:"type"`
Nsfw bool `json:"nsfw"`
Name string `json:"name"`
Description string `json:"description"`
DmPermission bool `json:"dm_permission"`
Options []ApplicationCommandOptions `json:"options"`
}
type Data struct {
Version string `json:"version"`
ID string `json:"id"`
Name string `json:"name"`
Type int `json:"type"`
Options []Options `json:"options"`
ApplicationCommand ApplicationCommand `json:"application_command"`
Attachments []interface{} `json:"attachments"`
}
type UpscalePayload struct {
Type int `json:"type"`
Nonce string `json:"nonce"`
GuildId string `json:"guild_id"`
ChannelId string `json:"channel_id"`
MessageFlags int `json:"message_flags"`
MessageId string `json:"message_id"`
ApplicationId string `json:"application_id"`
SessionId string `json:"session_id"`
Data UpscaleData `json:"data"`
}
type UpscaleData struct {
ComponentType int `json:"component_type"`
CustomId string `json:"custom_id"`
}