-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
91 lines (76 loc) · 1.79 KB
/
structs.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
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
package amarigo
type AmariBot struct {
ApiKey string
BaseURL string
CustomFetch string
Debug bool
Version string
}
type AmariError struct {
Message string
Name string
Status int
}
type RatelimitError struct {
Message string
Name string
Status int
Remaining int
}
type RequestHandler struct {
_client *AmariBot
}
type Leaderboard struct {
Users []*LeaderboardUser `json:"data"`
Count int `json:"count"`
Total int `json:"total_count"`
}
type LeaderboardRaw struct {
Users []*LeaderboardUser `json:"data"`
Count int `json:"count"`
}
type LeaderboardUser struct {
ID string `json:"id"`
Username string `json:"username"`
Exp int `json:"exp"`
Level int `json:"level"`
WeeklyExp int `json:"weeklyExp"`
}
type Weekly struct {
Users []*WeeklyUser `json:"data"`
Count int `json:"count"`
Total int `json:"total_count"`
}
type WeeklyRaw struct {
Users []*WeeklyUser `json:"data"`
Count int `json:"count"`
}
type WeeklyUser struct {
ID string `json:"id"`
Username string `json:"username"`
Exp int `json:"exp"`
}
type User struct {
ID string `json:"id"`
Username string `json:"username"`
Exp int `json:"exp"`
Level int `json:"level"`
WeeklyExp int `json:"weeklyExp"`
}
type Rewards struct {
Rewards []*Reward `json:"data"`
Count int `json:"count"`
}
type Reward struct {
RoleID string `json:"role_id"`
Level int `json:"level"`
}
type MemberIDList struct {
Members []string `json:"members"`
}
type GetGuildMembers struct {
GuildID string `json:"guild"`
Members []*User `json:"members"`
TotalMembers int `json:"total_members"`
QueriedMembers int `json:"queried_members"`
}