forked from andersfylling/disgord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iface_urlquerystringer_gen.go
117 lines (82 loc) · 1.96 KB
/
iface_urlquerystringer_gen.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// Code generated by generate/interfaces; DO NOT EDIT.
package disgord
func (g *GetMessagesParams) URLQueryString() string {
params := make(urlQuery)
if !(g.Around == 0) {
params["around"] = g.Around
}
if !(g.Before == 0) {
params["before"] = g.Before
}
if !(g.After == 0) {
params["after"] = g.After
}
if !(g.Limit == 0) {
params["limit"] = g.Limit
}
return params.URLQueryString()
}
func (g *getGuildMembersParams) URLQueryString() string {
params := make(urlQuery)
if !(g.After == 0) {
params["after"] = g.After
}
if !(g.Limit == 0) {
params["limit"] = g.Limit
}
return params.URLQueryString()
}
func (b *BanMemberParams) URLQueryString() string {
params := make(urlQuery)
if !(b.DeleteMessageDays == 0) {
params["delete_message_days"] = b.DeleteMessageDays
}
if !(b.Reason == "") {
params["reason"] = b.Reason
}
return params.URLQueryString()
}
func (p *pruneMembersParams) URLQueryString() string {
params := make(urlQuery)
params["days"] = p.Days
params["compute_prune_count"] = p.ComputePruneCount
return params.URLQueryString()
}
func (g *getInviteParams) URLQueryString() string {
params := make(urlQuery)
if !(g.WithMemberCount == false) {
params["with_count"] = g.WithMemberCount
}
return params.URLQueryString()
}
func (g *GetReactionURLParams) URLQueryString() string {
params := make(urlQuery)
if !(g.Before == 0) {
params["before"] = g.Before
}
if !(g.After == 0) {
params["after"] = g.After
}
if !(g.Limit == 0) {
params["limit"] = g.Limit
}
return params.URLQueryString()
}
func (g *GetCurrentUserGuildsParams) URLQueryString() string {
params := make(urlQuery)
if !(g.Before == 0) {
params["before"] = g.Before
}
if !(g.After == 0) {
params["after"] = g.After
}
if !(g.Limit == 0) {
params["limit"] = g.Limit
}
return params.URLQueryString()
}
func (e *execWebhookParams) URLQueryString() string {
params := make(urlQuery)
params["wait"] = e.Wait
return params.URLQueryString()
}