This repository was archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstructs.go
More file actions
111 lines (98 loc) · 2.8 KB
/
structs.go
File metadata and controls
111 lines (98 loc) · 2.8 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package main
type sendReady struct {
Cmd string `json:"cmd"`
Args interface{} `json:"args"`
Evt string `json:"evt"`
Nonce string `json:"nonce"`
}
type connectArgs struct {
Type string `json:"type"`
Pid int `json:"pid"`
}
type connect struct {
Cmd string `json:"cmd"`
Args *connectArgs `json:"args"`
Nonce string `json:"nonce"`
}
type base struct {
Cmd string `json:"cmd"`
Data baseData `json:"data"`
Event string `json:"evt"`
Nonce interface{} `json:"nonce"`
}
type baseData struct {
Type string `json:"type"`
PID int `json:"pid"`
Payloads []*interface{} `json:"payloads"`
}
type basePayload struct {
Type string `json:"type"`
}
type overlayInit struct {
Type string `json:"type"`
User user `json:"user"`
Token string `json:"token"`
PaymentInfo []*paymentSource `json:"paymentSources"`
Friends map[string]int `json:"relationships"`
MediaState struct {
Input map[string]struct {
Name string `json:"name"`
} `json:"inputDevices"`
Output map[string]struct {
Name string `json:"name"`
} `json:"outputDevices"`
} `json:"mediaEngineState"`
}
type tokenUpdate struct {
Type string `json:"type"`
Token string `json:"token"`
}
type storageSync struct {
}
type draftChange struct {
ChannelID string `json:"channelId"`
Content string `json:"draft"`
}
type userProfileFetch struct {
Type string `json:"type"`
User 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 interface{} `json:"banner"`
Bio interface{} `json:"bio"`
} `json:"user"`
ConnectedAccounts []struct {
Type string `json:"type"`
ID string `json:"id"`
Name string `json:"name"`
Verified bool `json:"verified"`
} `json:"connected_accounts"`
PremiumSince interface{} `json:"premium_since"`
PremiumGuildSince interface{} `json:"premium_guild_since"`
MutualGuilds []struct {
ID string `json:"id"`
Nick interface{} `json:"nick"`
} `json:"mutual_guilds"`
}
type paymentSource struct {
Address struct {
Name string `json:"name"`
FirstAddress string `json:"line1"`
SecondAddress string `json:"line2"`
City string `json:"city"`
PostalCode string `json:"postalCode"`
State string `json:"state"`
Country string `json:"country"`
} `json:"billingAddress"`
Email string `json:"email"`
}
type user struct {
Discriminator string `json:"discriminator"`
Username string `json:"username"`
Email string `json:"email"`
PhoneNumber string `json:"phone"`
}