-
Notifications
You must be signed in to change notification settings - Fork 1
/
interactions_string.go
195 lines (168 loc) · 7.04 KB
/
interactions_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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// Code generated by "stringer -type=ApplicationCommandOptionType,InteractionType,ResponseType,ApplicationCommandType,ButtonStyle,ComponentType,TextStyle,ApplicationCommandPermissionType -output interactions_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[TypeSubCommand-1]
_ = x[TypeSubCommandGroup-2]
_ = x[TypeString-3]
_ = x[TypeInteger-4]
_ = x[TypeBoolean-5]
_ = x[TypeUser-6]
_ = x[TypeChannel-7]
_ = x[TypeRole-8]
_ = x[TypeMentionable-9]
_ = x[TypeNumber-10]
_ = x[TypeAttachment-11]
}
const _ApplicationCommandOptionType_name = "TypeSubCommandTypeSubCommandGroupTypeStringTypeIntegerTypeBooleanTypeUserTypeChannelTypeRoleTypeMentionableTypeNumberTypeAttachment"
var _ApplicationCommandOptionType_index = [...]uint8{0, 14, 33, 43, 54, 65, 73, 84, 92, 107, 117, 131}
func (i ApplicationCommandOptionType) String() string {
i -= 1
if i < 0 || i >= ApplicationCommandOptionType(len(_ApplicationCommandOptionType_index)-1) {
return "ApplicationCommandOptionType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ApplicationCommandOptionType_name[_ApplicationCommandOptionType_index[i]:_ApplicationCommandOptionType_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[InteractionRequestPing-1]
_ = x[InteractionApplicationCommand-2]
_ = x[InteractionComponent-3]
_ = x[InteractionAutoComplete-4]
_ = x[InteractionModalSubmit-5]
}
const _InteractionType_name = "InteractionRequestPingInteractionApplicationCommandInteractionComponentInteractionAutoCompleteInteractionModalSubmit"
var _InteractionType_index = [...]uint8{0, 22, 51, 71, 94, 116}
func (i InteractionType) String() string {
i -= 1
if i < 0 || i >= InteractionType(len(_InteractionType_index)-1) {
return "InteractionType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _InteractionType_name[_InteractionType_index[i]:_InteractionType_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[ResponsePong-1]
_ = x[ResponseChannelMessageWithSource-4]
_ = x[ResponseDeferredChannelMessageWithSource-5]
_ = x[ResponseDeferredMessageUpdate-6]
_ = x[ResponseUpdateMessage-7]
_ = x[ResponseCommandAutocompleteResult-8]
_ = x[ResponseModal-9]
}
const (
_ResponseType_name_0 = "ResponsePong"
_ResponseType_name_1 = "ResponseChannelMessageWithSourceResponseDeferredChannelMessageWithSourceResponseDeferredMessageUpdateResponseUpdateMessageResponseCommandAutocompleteResultResponseModal"
)
var (
_ResponseType_index_1 = [...]uint8{0, 32, 72, 101, 122, 155, 168}
)
func (i ResponseType) String() string {
switch {
case i == 1:
return _ResponseType_name_0
case 4 <= i && i <= 9:
i -= 4
return _ResponseType_name_1[_ResponseType_index_1[i]:_ResponseType_index_1[i+1]]
default:
return "ResponseType(" + 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[CommandTypeChatInput-1]
_ = x[CommandTypeUser-2]
_ = x[CommandTypeMessage-3]
}
const _ApplicationCommandType_name = "CommandTypeChatInputCommandTypeUserCommandTypeMessage"
var _ApplicationCommandType_index = [...]uint8{0, 20, 35, 53}
func (i ApplicationCommandType) String() string {
i -= 1
if i < 0 || i >= ApplicationCommandType(len(_ApplicationCommandType_index)-1) {
return "ApplicationCommandType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ApplicationCommandType_name[_ApplicationCommandType_index[i]:_ApplicationCommandType_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[ButtonStylePrimary-1]
_ = x[ButtonStyleSecondary-2]
_ = x[ButtonStyleSuccess-3]
_ = x[ButtonStyleDanger-4]
_ = x[ButtonStyleLink-5]
}
const _ButtonStyle_name = "ButtonStylePrimaryButtonStyleSecondaryButtonStyleSuccessButtonStyleDangerButtonStyleLink"
var _ButtonStyle_index = [...]uint8{0, 18, 38, 56, 73, 88}
func (i ButtonStyle) String() string {
i -= 1
if i < 0 || i >= ButtonStyle(len(_ButtonStyle_index)-1) {
return "ButtonStyle(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ButtonStyle_name[_ButtonStyle_index[i]:_ButtonStyle_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[ComponentTypeActionRow-1]
_ = x[ComponentTypeButton-2]
_ = x[ComponentTypeSelectMenu-3]
_ = x[ComponentTypeInputText-4]
_ = x[ComponentTypeUserSelect-5]
_ = x[ComponentTypeRoleSelect-6]
_ = x[ComponentTypeMentionableSelect-7]
_ = x[ComponentTypeChannelSelect-8]
}
const _ComponentType_name = "ComponentTypeActionRowComponentTypeButtonComponentTypeSelectMenuComponentTypeInputTextComponentTypeUserSelectComponentTypeRoleSelectComponentTypeMentionableSelectComponentTypeChannelSelect"
var _ComponentType_index = [...]uint8{0, 22, 41, 64, 86, 109, 132, 162, 188}
func (i ComponentType) String() string {
i -= 1
if i < 0 || i >= ComponentType(len(_ComponentType_index)-1) {
return "ComponentType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ComponentType_name[_ComponentType_index[i]:_ComponentType_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[TextStyleShort-1]
_ = x[TextStyleParagraph-2]
}
const _TextStyle_name = "TextStyleShortTextStyleParagraph"
var _TextStyle_index = [...]uint8{0, 14, 32}
func (i TextStyle) String() string {
i -= 1
if i < 0 || i >= TextStyle(len(_TextStyle_index)-1) {
return "TextStyle(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _TextStyle_name[_TextStyle_index[i]:_TextStyle_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[PermissionTypeRole-1]
_ = x[PermissionTypeUser-2]
_ = x[PermissionTypeChannel-3]
}
const _ApplicationCommandPermissionType_name = "PermissionTypeRolePermissionTypeUserPermissionTypeChannel"
var _ApplicationCommandPermissionType_index = [...]uint8{0, 18, 36, 57}
func (i ApplicationCommandPermissionType) String() string {
i -= 1
if i < 0 || i >= ApplicationCommandPermissionType(len(_ApplicationCommandPermissionType_index)-1) {
return "ApplicationCommandPermissionType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _ApplicationCommandPermissionType_name[_ApplicationCommandPermissionType_index[i]:_ApplicationCommandPermissionType_index[i+1]]
}