-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagine_types.go
37 lines (33 loc) · 1.84 KB
/
imagine_types.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
package midjourney
type ImaginePayloadDataOption struct {
Type int `json:"type"`
Name string `json:"name"`
Value string `json:"value"`
}
type ImaginePayloadDataApplicationCommandOption struct {
Type int `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
Required bool `json:"required"`
}
type ImaginePayloadDataApplicationCommand struct {
ID string `json:"id"`
ApplicationID string `json:"application_id"`
Version string `json:"version"`
DefaultMemberPermissions *string `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 []ImaginePayloadDataApplicationCommandOption `json:"options"`
Attachements struct{} `json:"attachments"`
}
type ImaginePayloadData struct {
Version string `json:"version"`
ID string `json:"id"`
Name string `json:"name"`
Type int `json:"type"`
Options []ImaginePayloadDataOption `json:"options"`
ApplicationCommand ImaginePayloadDataApplicationCommand `json:"application_command"`
}