-
Notifications
You must be signed in to change notification settings - Fork 1
/
user_string.go
137 lines (122 loc) · 4.06 KB
/
user_string.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Code generated by "stringer -type UserFlags,PremiumType,ActivityType,ActivityFlag -output user_string.go"; DO NOT EDIT.
package objects
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[UserFlagsNone-0]
_ = x[DiscordEmployee-1]
_ = x[PartneredServerOwner-2]
_ = x[HypesquadEvents-4]
_ = x[BugHunterLevel1-8]
_ = x[HouseBravery-64]
_ = x[HouseBrilliance-128]
_ = x[HouseBalance-256]
_ = x[EarlySupporter-512]
_ = x[TeamUser-1024]
_ = x[BugHunterLevel2-16384]
_ = x[VerifiedBot-65536]
_ = x[EarlyVerifiedBotDeveloper-131072]
_ = x[DiscordCertifiedModerator-262144]
_ = x[BotHTTPInteractions-524288]
_ = x[ActiveDeveloper-1048576]
}
const _UserFlags_name = "UserFlagsNoneDiscordEmployeePartneredServerOwnerHypesquadEventsBugHunterLevel1HouseBraveryHouseBrillianceHouseBalanceEarlySupporterTeamUserBugHunterLevel2VerifiedBotEarlyVerifiedBotDeveloperDiscordCertifiedModeratorBotHTTPInteractionsActiveDeveloper"
var _UserFlags_map = map[UserFlags]string{
0: _UserFlags_name[0:13],
1: _UserFlags_name[13:28],
2: _UserFlags_name[28:48],
4: _UserFlags_name[48:63],
8: _UserFlags_name[63:78],
64: _UserFlags_name[78:90],
128: _UserFlags_name[90:105],
256: _UserFlags_name[105:117],
512: _UserFlags_name[117:131],
1024: _UserFlags_name[131:139],
16384: _UserFlags_name[139:154],
65536: _UserFlags_name[154:165],
131072: _UserFlags_name[165:190],
262144: _UserFlags_name[190:215],
524288: _UserFlags_name[215:234],
1048576: _UserFlags_name[234:249],
}
func (i UserFlags) String() string {
if str, ok := _UserFlags_map[i]; ok {
return str
}
return "UserFlags(" + strconv.FormatInt(int64(i), 10) + ")"
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[PremiumTypeNone-0]
_ = x[NitroClassic-1]
_ = x[Nitro-2]
_ = x[NitroBasic-3]
}
const _PremiumType_name = "PremiumTypeNoneNitroClassicNitroNitroBasic"
var _PremiumType_index = [...]uint8{0, 15, 27, 32, 42}
func (i PremiumType) String() string {
if i >= PremiumType(len(_PremiumType_index)-1) {
return "PremiumType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _PremiumType_name[_PremiumType_index[i]:_PremiumType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Game-0]
_ = x[Streaming-1]
_ = x[Listening-2]
_ = x[Custom-3]
_ = x[Competing-4]
}
const _ActivityType_name = "GameStreamingListeningCustomCompeting"
var _ActivityType_index = [...]uint8{0, 4, 13, 22, 28, 37}
func (i ActivityType) String() string {
if i >= ActivityType(len(_ActivityType_index)-1) {
return "ActivityType(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _ActivityType_name[_ActivityType_index[i]:_ActivityType_index[i+1]]
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ActivityInstance-1]
_ = x[ActivityJoin-2]
_ = x[ActivitySpectate-4]
_ = x[ActivityJoinRequest-8]
_ = x[ActivitySync-16]
_ = x[ActivityPlay-32]
}
const (
_ActivityFlag_name_0 = "ActivityInstanceActivityJoin"
_ActivityFlag_name_1 = "ActivitySpectate"
_ActivityFlag_name_2 = "ActivityJoinRequest"
_ActivityFlag_name_3 = "ActivitySync"
_ActivityFlag_name_4 = "ActivityPlay"
)
var (
_ActivityFlag_index_0 = [...]uint8{0, 16, 28}
)
func (i ActivityFlag) String() string {
switch {
case 1 <= i && i <= 2:
i -= 1
return _ActivityFlag_name_0[_ActivityFlag_index_0[i]:_ActivityFlag_index_0[i+1]]
case i == 4:
return _ActivityFlag_name_1
case i == 8:
return _ActivityFlag_name_2
case i == 16:
return _ActivityFlag_name_3
case i == 32:
return _ActivityFlag_name_4
default:
return "ActivityFlag(" + strconv.FormatInt(int64(i), 10) + ")"
}
}