discord-protos 1.2.81 → 1.2.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/discord_protos/__init__.py +1 -1
- package/discord_protos/discord_experimentation/v1/Experiment.proto +6 -0
- package/discord_protos/discord_experimentation/v1/Experiment_pb2.py +24 -22
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.d.ts +8 -0
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.js +16 -2
- package/dist/discord_protos/users/v1/GuildShardingConfig.d.ts +26 -0
- package/dist/discord_protos/users/v1/GuildShardingConfig.js +62 -0
- package/dist/discord_protos/users/v1/MediumUser.d.ts +55 -0
- package/dist/discord_protos/users/v1/MediumUser.js +108 -0
- package/dist/discord_protos/users/v1/User.d.ts +552 -0
- package/dist/discord_protos/users/v1/User.js +989 -0
- package/dist/discord_protos/users/v1/UserData.d.ts +802 -0
- package/dist/discord_protos/users/v1/UserData.js +1493 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,989 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.User_DisplayNameStyles = exports.User_SafetyState = exports.User_BannedState = exports.User_TempBannedState = exports.User_DeferredActionState = exports.User_RestrictedState = exports.User_NormalState = exports.User_UserCollectibles = exports.User_UserNameplate = exports.User_UserPrimaryGuild = exports.User_UserAvatarDecoration = exports.User = exports.User_DisplayNameEffect = exports.User_DisplayNameFont = exports.User_SafetyAnnotations = exports.User_SafetyStateReason = void 0;
|
|
4
|
+
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
|
+
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
|
+
const runtime_3 = require("@protobuf-ts/runtime");
|
|
7
|
+
const runtime_4 = require("@protobuf-ts/runtime");
|
|
8
|
+
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
9
|
+
const wrappers_1 = require("../../google/protobuf/wrappers");
|
|
10
|
+
const wrappers_2 = require("../../google/protobuf/wrappers");
|
|
11
|
+
const wrappers_3 = require("../../google/protobuf/wrappers");
|
|
12
|
+
const wrappers_4 = require("../../google/protobuf/wrappers");
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf enum discord_protos.users.v1.User.SafetyStateReason
|
|
15
|
+
*/
|
|
16
|
+
var User_SafetyStateReason;
|
|
17
|
+
(function (User_SafetyStateReason) {
|
|
18
|
+
/**
|
|
19
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_REASON_UNSPECIFIED = 0;
|
|
20
|
+
*/
|
|
21
|
+
User_SafetyStateReason[User_SafetyStateReason["REASON_UNSPECIFIED"] = 0] = "REASON_UNSPECIFIED";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DISABLED_SUSPICIOUS_ACTIVITY = 1;
|
|
24
|
+
*/
|
|
25
|
+
User_SafetyStateReason[User_SafetyStateReason["DISABLED_SUSPICIOUS_ACTIVITY"] = 1] = "DISABLED_SUSPICIOUS_ACTIVITY";
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_SMITE_REMOVE_EMAIL_VERIFICATION = 2;
|
|
28
|
+
*/
|
|
29
|
+
User_SafetyStateReason[User_SafetyStateReason["SMITE_REMOVE_EMAIL_VERIFICATION"] = 2] = "SMITE_REMOVE_EMAIL_VERIFICATION";
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_USER_REQUIRED_VERIFICATION_INTERVENTIONS_CLIENT = 3;
|
|
32
|
+
*/
|
|
33
|
+
User_SafetyStateReason[User_SafetyStateReason["USER_REQUIRED_VERIFICATION_INTERVENTIONS_CLIENT"] = 3] = "USER_REQUIRED_VERIFICATION_INTERVENTIONS_CLIENT";
|
|
34
|
+
/**
|
|
35
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_ACTIVE_ASSIGNMENT_COMPLETED = 4;
|
|
36
|
+
*/
|
|
37
|
+
User_SafetyStateReason[User_SafetyStateReason["ACTIVE_ASSIGNMENT_COMPLETED"] = 4] = "ACTIVE_ASSIGNMENT_COMPLETED";
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_ACTIVE_ASSIGNMENT_CREATED = 5;
|
|
40
|
+
*/
|
|
41
|
+
User_SafetyStateReason[User_SafetyStateReason["ACTIVE_ASSIGNMENT_CREATED"] = 5] = "ACTIVE_ASSIGNMENT_CREATED";
|
|
42
|
+
/**
|
|
43
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DEFERRED_ASSIGNMENT_CREATED = 6;
|
|
44
|
+
*/
|
|
45
|
+
User_SafetyStateReason[User_SafetyStateReason["DEFERRED_ASSIGNMENT_CREATED"] = 6] = "DEFERRED_ASSIGNMENT_CREATED";
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DEFERRED_ASSIGNMENT_UPGRADED_TO_ACTIVE = 7;
|
|
48
|
+
*/
|
|
49
|
+
User_SafetyStateReason[User_SafetyStateReason["DEFERRED_ASSIGNMENT_UPGRADED_TO_ACTIVE"] = 7] = "DEFERRED_ASSIGNMENT_UPGRADED_TO_ACTIVE";
|
|
50
|
+
/**
|
|
51
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_DEFERRED_ASSIGNMENT_CANCELLED = 8;
|
|
52
|
+
*/
|
|
53
|
+
User_SafetyStateReason[User_SafetyStateReason["DEFERRED_ASSIGNMENT_CANCELLED"] = 8] = "DEFERRED_ASSIGNMENT_CANCELLED";
|
|
54
|
+
/**
|
|
55
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_ASSIGNMENT_STATE_REPAIRED = 9;
|
|
56
|
+
*/
|
|
57
|
+
User_SafetyStateReason[User_SafetyStateReason["ASSIGNMENT_STATE_REPAIRED"] = 9] = "ASSIGNMENT_STATE_REPAIRED";
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_MANUAL_PERMANENT_BAN = 10;
|
|
60
|
+
*/
|
|
61
|
+
User_SafetyStateReason[User_SafetyStateReason["MANUAL_PERMANENT_BAN"] = 10] = "MANUAL_PERMANENT_BAN";
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_SAFETY_SYSTEM_UNBAN = 11;
|
|
64
|
+
*/
|
|
65
|
+
User_SafetyStateReason[User_SafetyStateReason["SAFETY_SYSTEM_UNBAN"] = 11] = "SAFETY_SYSTEM_UNBAN";
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_GENERIC_AUTOMATED_SAFETY_ACTION = 12;
|
|
68
|
+
*/
|
|
69
|
+
User_SafetyStateReason[User_SafetyStateReason["GENERIC_AUTOMATED_SAFETY_ACTION"] = 12] = "GENERIC_AUTOMATED_SAFETY_ACTION";
|
|
70
|
+
/**
|
|
71
|
+
* @generated from protobuf enum value: SAFETY_STATE_REASON_GENERIC_MANUAL_SAFETY_ACTION = 13;
|
|
72
|
+
*/
|
|
73
|
+
User_SafetyStateReason[User_SafetyStateReason["GENERIC_MANUAL_SAFETY_ACTION"] = 13] = "GENERIC_MANUAL_SAFETY_ACTION";
|
|
74
|
+
})(User_SafetyStateReason || (exports.User_SafetyStateReason = User_SafetyStateReason = {}));
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf enum discord_protos.users.v1.User.SafetyAnnotations
|
|
77
|
+
*/
|
|
78
|
+
var User_SafetyAnnotations;
|
|
79
|
+
(function (User_SafetyAnnotations) {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_ANNOTATION_UNSPECIFIED = 0;
|
|
82
|
+
*/
|
|
83
|
+
User_SafetyAnnotations[User_SafetyAnnotations["ANNOTATION_UNSPECIFIED"] = 0] = "ANNOTATION_UNSPECIFIED";
|
|
84
|
+
/**
|
|
85
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SPAMMER = 1;
|
|
86
|
+
*/
|
|
87
|
+
User_SafetyAnnotations[User_SafetyAnnotations["SPAMMER"] = 1] = "SPAMMER";
|
|
88
|
+
/**
|
|
89
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SELF_DELETED = 2;
|
|
90
|
+
*/
|
|
91
|
+
User_SafetyAnnotations[User_SafetyAnnotations["SELF_DELETED"] = 2] = "SELF_DELETED";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SELF_DISABLED = 3;
|
|
94
|
+
*/
|
|
95
|
+
User_SafetyAnnotations[User_SafetyAnnotations["SELF_DISABLED"] = 3] = "SELF_DISABLED";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_UNDERAGE_DELETED = 4;
|
|
98
|
+
*/
|
|
99
|
+
User_SafetyAnnotations[User_SafetyAnnotations["UNDERAGE_DELETED"] = 4] = "UNDERAGE_DELETED";
|
|
100
|
+
/**
|
|
101
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_SAFETY_POLICY_VIOLATION = 5;
|
|
102
|
+
*/
|
|
103
|
+
User_SafetyAnnotations[User_SafetyAnnotations["SAFETY_POLICY_VIOLATION"] = 5] = "SAFETY_POLICY_VIOLATION";
|
|
104
|
+
/**
|
|
105
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_INACTIVITY_DELETED = 6;
|
|
106
|
+
*/
|
|
107
|
+
User_SafetyAnnotations[User_SafetyAnnotations["INACTIVITY_DELETED"] = 6] = "INACTIVITY_DELETED";
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf enum value: SAFETY_ANNOTATIONS_GENERIC_DELETED = 7;
|
|
110
|
+
*/
|
|
111
|
+
User_SafetyAnnotations[User_SafetyAnnotations["GENERIC_DELETED"] = 7] = "GENERIC_DELETED";
|
|
112
|
+
})(User_SafetyAnnotations || (exports.User_SafetyAnnotations = User_SafetyAnnotations = {}));
|
|
113
|
+
/**
|
|
114
|
+
* @generated from protobuf enum discord_protos.users.v1.User.DisplayNameFont
|
|
115
|
+
*/
|
|
116
|
+
var User_DisplayNameFont;
|
|
117
|
+
(function (User_DisplayNameFont) {
|
|
118
|
+
/**
|
|
119
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_UNSPECIFIED = 0;
|
|
120
|
+
*/
|
|
121
|
+
User_DisplayNameFont[User_DisplayNameFont["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
122
|
+
/**
|
|
123
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_DEFAULT = 11;
|
|
124
|
+
*/
|
|
125
|
+
User_DisplayNameFont[User_DisplayNameFont["DEFAULT"] = 11] = "DEFAULT";
|
|
126
|
+
/**
|
|
127
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_BANGERS = 1;
|
|
128
|
+
*/
|
|
129
|
+
User_DisplayNameFont[User_DisplayNameFont["BANGERS"] = 1] = "BANGERS";
|
|
130
|
+
/**
|
|
131
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_BIO_RHYME = 2;
|
|
132
|
+
*/
|
|
133
|
+
User_DisplayNameFont[User_DisplayNameFont["BIO_RHYME"] = 2] = "BIO_RHYME";
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_CHERRY_BOMB = 3;
|
|
136
|
+
*/
|
|
137
|
+
User_DisplayNameFont[User_DisplayNameFont["CHERRY_BOMB"] = 3] = "CHERRY_BOMB";
|
|
138
|
+
/**
|
|
139
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_CHICLE = 4;
|
|
140
|
+
*/
|
|
141
|
+
User_DisplayNameFont[User_DisplayNameFont["CHICLE"] = 4] = "CHICLE";
|
|
142
|
+
/**
|
|
143
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_COMPAGNON = 5;
|
|
144
|
+
*/
|
|
145
|
+
User_DisplayNameFont[User_DisplayNameFont["COMPAGNON"] = 5] = "COMPAGNON";
|
|
146
|
+
/**
|
|
147
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_MUSEO_MODERNO = 6;
|
|
148
|
+
*/
|
|
149
|
+
User_DisplayNameFont[User_DisplayNameFont["MUSEO_MODERNO"] = 6] = "MUSEO_MODERNO";
|
|
150
|
+
/**
|
|
151
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_NEO_CASTEL = 7;
|
|
152
|
+
*/
|
|
153
|
+
User_DisplayNameFont[User_DisplayNameFont["NEO_CASTEL"] = 7] = "NEO_CASTEL";
|
|
154
|
+
/**
|
|
155
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_PIXELIFY = 8;
|
|
156
|
+
*/
|
|
157
|
+
User_DisplayNameFont[User_DisplayNameFont["PIXELIFY"] = 8] = "PIXELIFY";
|
|
158
|
+
/**
|
|
159
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_RIBES = 9;
|
|
160
|
+
*/
|
|
161
|
+
User_DisplayNameFont[User_DisplayNameFont["RIBES"] = 9] = "RIBES";
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_SINISTRE = 10;
|
|
164
|
+
*/
|
|
165
|
+
User_DisplayNameFont[User_DisplayNameFont["SINISTRE"] = 10] = "SINISTRE";
|
|
166
|
+
/**
|
|
167
|
+
* @generated from protobuf enum value: DISPLAY_NAME_FONT_ZILLA_SLAB = 12;
|
|
168
|
+
*/
|
|
169
|
+
User_DisplayNameFont[User_DisplayNameFont["ZILLA_SLAB"] = 12] = "ZILLA_SLAB";
|
|
170
|
+
})(User_DisplayNameFont || (exports.User_DisplayNameFont = User_DisplayNameFont = {}));
|
|
171
|
+
/**
|
|
172
|
+
* @generated from protobuf enum discord_protos.users.v1.User.DisplayNameEffect
|
|
173
|
+
*/
|
|
174
|
+
var User_DisplayNameEffect;
|
|
175
|
+
(function (User_DisplayNameEffect) {
|
|
176
|
+
/**
|
|
177
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_UNSPECIFIED = 0;
|
|
178
|
+
*/
|
|
179
|
+
User_DisplayNameEffect[User_DisplayNameEffect["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
180
|
+
/**
|
|
181
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_SOLID = 1;
|
|
182
|
+
*/
|
|
183
|
+
User_DisplayNameEffect[User_DisplayNameEffect["SOLID"] = 1] = "SOLID";
|
|
184
|
+
/**
|
|
185
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_GRADIENT = 2;
|
|
186
|
+
*/
|
|
187
|
+
User_DisplayNameEffect[User_DisplayNameEffect["GRADIENT"] = 2] = "GRADIENT";
|
|
188
|
+
/**
|
|
189
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_NEON = 3;
|
|
190
|
+
*/
|
|
191
|
+
User_DisplayNameEffect[User_DisplayNameEffect["NEON"] = 3] = "NEON";
|
|
192
|
+
/**
|
|
193
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_TOON = 4;
|
|
194
|
+
*/
|
|
195
|
+
User_DisplayNameEffect[User_DisplayNameEffect["TOON"] = 4] = "TOON";
|
|
196
|
+
/**
|
|
197
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_POP = 5;
|
|
198
|
+
*/
|
|
199
|
+
User_DisplayNameEffect[User_DisplayNameEffect["POP"] = 5] = "POP";
|
|
200
|
+
/**
|
|
201
|
+
* @generated from protobuf enum value: DISPLAY_NAME_EFFECT_GLOW = 6;
|
|
202
|
+
*/
|
|
203
|
+
User_DisplayNameEffect[User_DisplayNameEffect["GLOW"] = 6] = "GLOW";
|
|
204
|
+
})(User_DisplayNameEffect || (exports.User_DisplayNameEffect = User_DisplayNameEffect = {}));
|
|
205
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
206
|
+
class User$Type extends runtime_4.MessageType {
|
|
207
|
+
constructor() {
|
|
208
|
+
super("discord_protos.users.v1.User", [
|
|
209
|
+
{ no: 1, name: "id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
210
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
211
|
+
{ no: 3, name: "discriminator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
212
|
+
{ no: 4, name: "avatar", kind: "message", T: () => wrappers_4.StringValue },
|
|
213
|
+
{ no: 5, name: "bot", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
214
|
+
{ no: 6, name: "public_flags", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
215
|
+
{ no: 8, name: "global_name", kind: "message", T: () => wrappers_4.StringValue },
|
|
216
|
+
{ no: 9, name: "avatar_decoration_data", kind: "message", T: () => exports.User_UserAvatarDecoration },
|
|
217
|
+
{ no: 10, name: "primary_guild", kind: "message", T: () => exports.User_UserPrimaryGuild },
|
|
218
|
+
{ no: 11, name: "collectibles", kind: "message", T: () => exports.User_UserCollectibles },
|
|
219
|
+
{ no: 12, name: "safety_state", kind: "message", T: () => exports.User_SafetyState },
|
|
220
|
+
{ no: 13, name: "display_name_styles", kind: "message", T: () => exports.User_DisplayNameStyles }
|
|
221
|
+
]);
|
|
222
|
+
}
|
|
223
|
+
create(value) {
|
|
224
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
225
|
+
message.id = 0n;
|
|
226
|
+
message.username = "";
|
|
227
|
+
message.discriminator = "";
|
|
228
|
+
message.bot = false;
|
|
229
|
+
message.publicFlags = 0n;
|
|
230
|
+
if (value !== undefined)
|
|
231
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
232
|
+
return message;
|
|
233
|
+
}
|
|
234
|
+
internalBinaryRead(reader, length, options, target) {
|
|
235
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
236
|
+
while (reader.pos < end) {
|
|
237
|
+
let [fieldNo, wireType] = reader.tag();
|
|
238
|
+
switch (fieldNo) {
|
|
239
|
+
case /* uint64 id */ 1:
|
|
240
|
+
message.id = reader.uint64().toBigInt();
|
|
241
|
+
break;
|
|
242
|
+
case /* string username */ 2:
|
|
243
|
+
message.username = reader.string();
|
|
244
|
+
break;
|
|
245
|
+
case /* string discriminator */ 3:
|
|
246
|
+
message.discriminator = reader.string();
|
|
247
|
+
break;
|
|
248
|
+
case /* optional google.protobuf.StringValue avatar */ 4:
|
|
249
|
+
message.avatar = wrappers_4.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.avatar);
|
|
250
|
+
break;
|
|
251
|
+
case /* bool bot */ 5:
|
|
252
|
+
message.bot = reader.bool();
|
|
253
|
+
break;
|
|
254
|
+
case /* uint64 public_flags */ 6:
|
|
255
|
+
message.publicFlags = reader.uint64().toBigInt();
|
|
256
|
+
break;
|
|
257
|
+
case /* optional google.protobuf.StringValue global_name */ 8:
|
|
258
|
+
message.globalName = wrappers_4.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.globalName);
|
|
259
|
+
break;
|
|
260
|
+
case /* optional discord_protos.users.v1.User.UserAvatarDecoration avatar_decoration_data */ 9:
|
|
261
|
+
message.avatarDecorationData = exports.User_UserAvatarDecoration.internalBinaryRead(reader, reader.uint32(), options, message.avatarDecorationData);
|
|
262
|
+
break;
|
|
263
|
+
case /* optional discord_protos.users.v1.User.UserPrimaryGuild primary_guild */ 10:
|
|
264
|
+
message.primaryGuild = exports.User_UserPrimaryGuild.internalBinaryRead(reader, reader.uint32(), options, message.primaryGuild);
|
|
265
|
+
break;
|
|
266
|
+
case /* optional discord_protos.users.v1.User.UserCollectibles collectibles */ 11:
|
|
267
|
+
message.collectibles = exports.User_UserCollectibles.internalBinaryRead(reader, reader.uint32(), options, message.collectibles);
|
|
268
|
+
break;
|
|
269
|
+
case /* optional discord_protos.users.v1.User.SafetyState safety_state */ 12:
|
|
270
|
+
message.safetyState = exports.User_SafetyState.internalBinaryRead(reader, reader.uint32(), options, message.safetyState);
|
|
271
|
+
break;
|
|
272
|
+
case /* optional discord_protos.users.v1.User.DisplayNameStyles display_name_styles */ 13:
|
|
273
|
+
message.displayNameStyles = exports.User_DisplayNameStyles.internalBinaryRead(reader, reader.uint32(), options, message.displayNameStyles);
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
let u = options.readUnknownField;
|
|
277
|
+
if (u === "throw")
|
|
278
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
279
|
+
let d = reader.skip(wireType);
|
|
280
|
+
if (u !== false)
|
|
281
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return message;
|
|
285
|
+
}
|
|
286
|
+
internalBinaryWrite(message, writer, options) {
|
|
287
|
+
/* uint64 id = 1; */
|
|
288
|
+
if (message.id !== 0n)
|
|
289
|
+
writer.tag(1, runtime_1.WireType.Varint).uint64(message.id);
|
|
290
|
+
/* string username = 2; */
|
|
291
|
+
if (message.username !== "")
|
|
292
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.username);
|
|
293
|
+
/* string discriminator = 3; */
|
|
294
|
+
if (message.discriminator !== "")
|
|
295
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.discriminator);
|
|
296
|
+
/* optional google.protobuf.StringValue avatar = 4; */
|
|
297
|
+
if (message.avatar)
|
|
298
|
+
wrappers_4.StringValue.internalBinaryWrite(message.avatar, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
299
|
+
/* bool bot = 5; */
|
|
300
|
+
if (message.bot !== false)
|
|
301
|
+
writer.tag(5, runtime_1.WireType.Varint).bool(message.bot);
|
|
302
|
+
/* uint64 public_flags = 6; */
|
|
303
|
+
if (message.publicFlags !== 0n)
|
|
304
|
+
writer.tag(6, runtime_1.WireType.Varint).uint64(message.publicFlags);
|
|
305
|
+
/* optional google.protobuf.StringValue global_name = 8; */
|
|
306
|
+
if (message.globalName)
|
|
307
|
+
wrappers_4.StringValue.internalBinaryWrite(message.globalName, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
308
|
+
/* optional discord_protos.users.v1.User.UserAvatarDecoration avatar_decoration_data = 9; */
|
|
309
|
+
if (message.avatarDecorationData)
|
|
310
|
+
exports.User_UserAvatarDecoration.internalBinaryWrite(message.avatarDecorationData, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
311
|
+
/* optional discord_protos.users.v1.User.UserPrimaryGuild primary_guild = 10; */
|
|
312
|
+
if (message.primaryGuild)
|
|
313
|
+
exports.User_UserPrimaryGuild.internalBinaryWrite(message.primaryGuild, writer.tag(10, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
314
|
+
/* optional discord_protos.users.v1.User.UserCollectibles collectibles = 11; */
|
|
315
|
+
if (message.collectibles)
|
|
316
|
+
exports.User_UserCollectibles.internalBinaryWrite(message.collectibles, writer.tag(11, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
317
|
+
/* optional discord_protos.users.v1.User.SafetyState safety_state = 12; */
|
|
318
|
+
if (message.safetyState)
|
|
319
|
+
exports.User_SafetyState.internalBinaryWrite(message.safetyState, writer.tag(12, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
320
|
+
/* optional discord_protos.users.v1.User.DisplayNameStyles display_name_styles = 13; */
|
|
321
|
+
if (message.displayNameStyles)
|
|
322
|
+
exports.User_DisplayNameStyles.internalBinaryWrite(message.displayNameStyles, writer.tag(13, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
323
|
+
let u = options.writeUnknownFields;
|
|
324
|
+
if (u !== false)
|
|
325
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
326
|
+
return writer;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User
|
|
331
|
+
*/
|
|
332
|
+
exports.User = new User$Type();
|
|
333
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
334
|
+
class User_UserAvatarDecoration$Type extends runtime_4.MessageType {
|
|
335
|
+
constructor() {
|
|
336
|
+
super("discord_protos.users.v1.User.UserAvatarDecoration", [
|
|
337
|
+
{ no: 1, name: "asset", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
338
|
+
{ no: 2, name: "sku_id", kind: "message", T: () => wrappers_3.UInt64Value },
|
|
339
|
+
{ no: 3, name: "expires_at", kind: "message", T: () => wrappers_2.UInt32Value }
|
|
340
|
+
]);
|
|
341
|
+
}
|
|
342
|
+
create(value) {
|
|
343
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
344
|
+
message.asset = "";
|
|
345
|
+
if (value !== undefined)
|
|
346
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
347
|
+
return message;
|
|
348
|
+
}
|
|
349
|
+
internalBinaryRead(reader, length, options, target) {
|
|
350
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
351
|
+
while (reader.pos < end) {
|
|
352
|
+
let [fieldNo, wireType] = reader.tag();
|
|
353
|
+
switch (fieldNo) {
|
|
354
|
+
case /* string asset */ 1:
|
|
355
|
+
message.asset = reader.string();
|
|
356
|
+
break;
|
|
357
|
+
case /* optional google.protobuf.UInt64Value sku_id */ 2:
|
|
358
|
+
message.skuId = wrappers_3.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.skuId);
|
|
359
|
+
break;
|
|
360
|
+
case /* optional google.protobuf.UInt32Value expires_at */ 3:
|
|
361
|
+
message.expiresAt = wrappers_2.UInt32Value.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
362
|
+
break;
|
|
363
|
+
default:
|
|
364
|
+
let u = options.readUnknownField;
|
|
365
|
+
if (u === "throw")
|
|
366
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
367
|
+
let d = reader.skip(wireType);
|
|
368
|
+
if (u !== false)
|
|
369
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return message;
|
|
373
|
+
}
|
|
374
|
+
internalBinaryWrite(message, writer, options) {
|
|
375
|
+
/* string asset = 1; */
|
|
376
|
+
if (message.asset !== "")
|
|
377
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.asset);
|
|
378
|
+
/* optional google.protobuf.UInt64Value sku_id = 2; */
|
|
379
|
+
if (message.skuId)
|
|
380
|
+
wrappers_3.UInt64Value.internalBinaryWrite(message.skuId, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
381
|
+
/* optional google.protobuf.UInt32Value expires_at = 3; */
|
|
382
|
+
if (message.expiresAt)
|
|
383
|
+
wrappers_2.UInt32Value.internalBinaryWrite(message.expiresAt, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
384
|
+
let u = options.writeUnknownFields;
|
|
385
|
+
if (u !== false)
|
|
386
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
387
|
+
return writer;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.UserAvatarDecoration
|
|
392
|
+
*/
|
|
393
|
+
exports.User_UserAvatarDecoration = new User_UserAvatarDecoration$Type();
|
|
394
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
395
|
+
class User_UserPrimaryGuild$Type extends runtime_4.MessageType {
|
|
396
|
+
constructor() {
|
|
397
|
+
super("discord_protos.users.v1.User.UserPrimaryGuild", [
|
|
398
|
+
{ no: 1, name: "identity_guild_id", kind: "message", T: () => wrappers_3.UInt64Value },
|
|
399
|
+
{ no: 2, name: "identity_enabled", kind: "message", T: () => wrappers_1.BoolValue },
|
|
400
|
+
{ no: 3, name: "tag", kind: "message", T: () => wrappers_4.StringValue },
|
|
401
|
+
{ no: 4, name: "badge", kind: "message", T: () => wrappers_4.StringValue }
|
|
402
|
+
]);
|
|
403
|
+
}
|
|
404
|
+
create(value) {
|
|
405
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
406
|
+
if (value !== undefined)
|
|
407
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
408
|
+
return message;
|
|
409
|
+
}
|
|
410
|
+
internalBinaryRead(reader, length, options, target) {
|
|
411
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
412
|
+
while (reader.pos < end) {
|
|
413
|
+
let [fieldNo, wireType] = reader.tag();
|
|
414
|
+
switch (fieldNo) {
|
|
415
|
+
case /* optional google.protobuf.UInt64Value identity_guild_id */ 1:
|
|
416
|
+
message.identityGuildId = wrappers_3.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.identityGuildId);
|
|
417
|
+
break;
|
|
418
|
+
case /* optional google.protobuf.BoolValue identity_enabled */ 2:
|
|
419
|
+
message.identityEnabled = wrappers_1.BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.identityEnabled);
|
|
420
|
+
break;
|
|
421
|
+
case /* optional google.protobuf.StringValue tag */ 3:
|
|
422
|
+
message.tag = wrappers_4.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.tag);
|
|
423
|
+
break;
|
|
424
|
+
case /* optional google.protobuf.StringValue badge */ 4:
|
|
425
|
+
message.badge = wrappers_4.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.badge);
|
|
426
|
+
break;
|
|
427
|
+
default:
|
|
428
|
+
let u = options.readUnknownField;
|
|
429
|
+
if (u === "throw")
|
|
430
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
431
|
+
let d = reader.skip(wireType);
|
|
432
|
+
if (u !== false)
|
|
433
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
return message;
|
|
437
|
+
}
|
|
438
|
+
internalBinaryWrite(message, writer, options) {
|
|
439
|
+
/* optional google.protobuf.UInt64Value identity_guild_id = 1; */
|
|
440
|
+
if (message.identityGuildId)
|
|
441
|
+
wrappers_3.UInt64Value.internalBinaryWrite(message.identityGuildId, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
442
|
+
/* optional google.protobuf.BoolValue identity_enabled = 2; */
|
|
443
|
+
if (message.identityEnabled)
|
|
444
|
+
wrappers_1.BoolValue.internalBinaryWrite(message.identityEnabled, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
445
|
+
/* optional google.protobuf.StringValue tag = 3; */
|
|
446
|
+
if (message.tag)
|
|
447
|
+
wrappers_4.StringValue.internalBinaryWrite(message.tag, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
448
|
+
/* optional google.protobuf.StringValue badge = 4; */
|
|
449
|
+
if (message.badge)
|
|
450
|
+
wrappers_4.StringValue.internalBinaryWrite(message.badge, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
451
|
+
let u = options.writeUnknownFields;
|
|
452
|
+
if (u !== false)
|
|
453
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
454
|
+
return writer;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.UserPrimaryGuild
|
|
459
|
+
*/
|
|
460
|
+
exports.User_UserPrimaryGuild = new User_UserPrimaryGuild$Type();
|
|
461
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
462
|
+
class User_UserNameplate$Type extends runtime_4.MessageType {
|
|
463
|
+
constructor() {
|
|
464
|
+
super("discord_protos.users.v1.User.UserNameplate", [
|
|
465
|
+
{ no: 1, name: "asset", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
466
|
+
{ no: 2, name: "palette", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
467
|
+
{ no: 3, name: "sku_id", kind: "message", T: () => wrappers_3.UInt64Value },
|
|
468
|
+
{ no: 4, name: "expires_at", kind: "message", T: () => timestamp_1.Timestamp },
|
|
469
|
+
{ no: 5, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
470
|
+
]);
|
|
471
|
+
}
|
|
472
|
+
create(value) {
|
|
473
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
474
|
+
message.asset = "";
|
|
475
|
+
message.palette = "";
|
|
476
|
+
message.label = "";
|
|
477
|
+
if (value !== undefined)
|
|
478
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
479
|
+
return message;
|
|
480
|
+
}
|
|
481
|
+
internalBinaryRead(reader, length, options, target) {
|
|
482
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
483
|
+
while (reader.pos < end) {
|
|
484
|
+
let [fieldNo, wireType] = reader.tag();
|
|
485
|
+
switch (fieldNo) {
|
|
486
|
+
case /* string asset */ 1:
|
|
487
|
+
message.asset = reader.string();
|
|
488
|
+
break;
|
|
489
|
+
case /* string palette */ 2:
|
|
490
|
+
message.palette = reader.string();
|
|
491
|
+
break;
|
|
492
|
+
case /* optional google.protobuf.UInt64Value sku_id */ 3:
|
|
493
|
+
message.skuId = wrappers_3.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.skuId);
|
|
494
|
+
break;
|
|
495
|
+
case /* optional google.protobuf.Timestamp expires_at */ 4:
|
|
496
|
+
message.expiresAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
497
|
+
break;
|
|
498
|
+
case /* string label */ 5:
|
|
499
|
+
message.label = reader.string();
|
|
500
|
+
break;
|
|
501
|
+
default:
|
|
502
|
+
let u = options.readUnknownField;
|
|
503
|
+
if (u === "throw")
|
|
504
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
505
|
+
let d = reader.skip(wireType);
|
|
506
|
+
if (u !== false)
|
|
507
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
return message;
|
|
511
|
+
}
|
|
512
|
+
internalBinaryWrite(message, writer, options) {
|
|
513
|
+
/* string asset = 1; */
|
|
514
|
+
if (message.asset !== "")
|
|
515
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.asset);
|
|
516
|
+
/* string palette = 2; */
|
|
517
|
+
if (message.palette !== "")
|
|
518
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.palette);
|
|
519
|
+
/* optional google.protobuf.UInt64Value sku_id = 3; */
|
|
520
|
+
if (message.skuId)
|
|
521
|
+
wrappers_3.UInt64Value.internalBinaryWrite(message.skuId, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
522
|
+
/* optional google.protobuf.Timestamp expires_at = 4; */
|
|
523
|
+
if (message.expiresAt)
|
|
524
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
525
|
+
/* string label = 5; */
|
|
526
|
+
if (message.label !== "")
|
|
527
|
+
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.label);
|
|
528
|
+
let u = options.writeUnknownFields;
|
|
529
|
+
if (u !== false)
|
|
530
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
531
|
+
return writer;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.UserNameplate
|
|
536
|
+
*/
|
|
537
|
+
exports.User_UserNameplate = new User_UserNameplate$Type();
|
|
538
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
539
|
+
class User_UserCollectibles$Type extends runtime_4.MessageType {
|
|
540
|
+
constructor() {
|
|
541
|
+
super("discord_protos.users.v1.User.UserCollectibles", [
|
|
542
|
+
{ no: 1, name: "nameplate", kind: "message", T: () => exports.User_UserNameplate }
|
|
543
|
+
]);
|
|
544
|
+
}
|
|
545
|
+
create(value) {
|
|
546
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
547
|
+
if (value !== undefined)
|
|
548
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
549
|
+
return message;
|
|
550
|
+
}
|
|
551
|
+
internalBinaryRead(reader, length, options, target) {
|
|
552
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
553
|
+
while (reader.pos < end) {
|
|
554
|
+
let [fieldNo, wireType] = reader.tag();
|
|
555
|
+
switch (fieldNo) {
|
|
556
|
+
case /* optional discord_protos.users.v1.User.UserNameplate nameplate */ 1:
|
|
557
|
+
message.nameplate = exports.User_UserNameplate.internalBinaryRead(reader, reader.uint32(), options, message.nameplate);
|
|
558
|
+
break;
|
|
559
|
+
default:
|
|
560
|
+
let u = options.readUnknownField;
|
|
561
|
+
if (u === "throw")
|
|
562
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
563
|
+
let d = reader.skip(wireType);
|
|
564
|
+
if (u !== false)
|
|
565
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return message;
|
|
569
|
+
}
|
|
570
|
+
internalBinaryWrite(message, writer, options) {
|
|
571
|
+
/* optional discord_protos.users.v1.User.UserNameplate nameplate = 1; */
|
|
572
|
+
if (message.nameplate)
|
|
573
|
+
exports.User_UserNameplate.internalBinaryWrite(message.nameplate, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
574
|
+
let u = options.writeUnknownFields;
|
|
575
|
+
if (u !== false)
|
|
576
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
577
|
+
return writer;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.UserCollectibles
|
|
582
|
+
*/
|
|
583
|
+
exports.User_UserCollectibles = new User_UserCollectibles$Type();
|
|
584
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
585
|
+
class User_NormalState$Type extends runtime_4.MessageType {
|
|
586
|
+
constructor() {
|
|
587
|
+
super("discord_protos.users.v1.User.NormalState", []);
|
|
588
|
+
}
|
|
589
|
+
create(value) {
|
|
590
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
591
|
+
if (value !== undefined)
|
|
592
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
593
|
+
return message;
|
|
594
|
+
}
|
|
595
|
+
internalBinaryRead(reader, length, options, target) {
|
|
596
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
597
|
+
while (reader.pos < end) {
|
|
598
|
+
let [fieldNo, wireType] = reader.tag();
|
|
599
|
+
switch (fieldNo) {
|
|
600
|
+
default:
|
|
601
|
+
let u = options.readUnknownField;
|
|
602
|
+
if (u === "throw")
|
|
603
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
604
|
+
let d = reader.skip(wireType);
|
|
605
|
+
if (u !== false)
|
|
606
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
return message;
|
|
610
|
+
}
|
|
611
|
+
internalBinaryWrite(message, writer, options) {
|
|
612
|
+
let u = options.writeUnknownFields;
|
|
613
|
+
if (u !== false)
|
|
614
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
615
|
+
return writer;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.NormalState
|
|
620
|
+
*/
|
|
621
|
+
exports.User_NormalState = new User_NormalState$Type();
|
|
622
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
623
|
+
class User_RestrictedState$Type extends runtime_4.MessageType {
|
|
624
|
+
constructor() {
|
|
625
|
+
super("discord_protos.users.v1.User.RestrictedState", [
|
|
626
|
+
{ no: 1, name: "restricted_until", kind: "message", T: () => timestamp_1.Timestamp }
|
|
627
|
+
]);
|
|
628
|
+
}
|
|
629
|
+
create(value) {
|
|
630
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
631
|
+
if (value !== undefined)
|
|
632
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
633
|
+
return message;
|
|
634
|
+
}
|
|
635
|
+
internalBinaryRead(reader, length, options, target) {
|
|
636
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
637
|
+
while (reader.pos < end) {
|
|
638
|
+
let [fieldNo, wireType] = reader.tag();
|
|
639
|
+
switch (fieldNo) {
|
|
640
|
+
case /* optional google.protobuf.Timestamp restricted_until */ 1:
|
|
641
|
+
message.restrictedUntil = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.restrictedUntil);
|
|
642
|
+
break;
|
|
643
|
+
default:
|
|
644
|
+
let u = options.readUnknownField;
|
|
645
|
+
if (u === "throw")
|
|
646
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
647
|
+
let d = reader.skip(wireType);
|
|
648
|
+
if (u !== false)
|
|
649
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return message;
|
|
653
|
+
}
|
|
654
|
+
internalBinaryWrite(message, writer, options) {
|
|
655
|
+
/* optional google.protobuf.Timestamp restricted_until = 1; */
|
|
656
|
+
if (message.restrictedUntil)
|
|
657
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.restrictedUntil, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
658
|
+
let u = options.writeUnknownFields;
|
|
659
|
+
if (u !== false)
|
|
660
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
661
|
+
return writer;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.RestrictedState
|
|
666
|
+
*/
|
|
667
|
+
exports.User_RestrictedState = new User_RestrictedState$Type();
|
|
668
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
669
|
+
class User_DeferredActionState$Type extends runtime_4.MessageType {
|
|
670
|
+
constructor() {
|
|
671
|
+
super("discord_protos.users.v1.User.DeferredActionState", [
|
|
672
|
+
{ no: 1, name: "action_deferred_until", kind: "message", T: () => timestamp_1.Timestamp }
|
|
673
|
+
]);
|
|
674
|
+
}
|
|
675
|
+
create(value) {
|
|
676
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
677
|
+
if (value !== undefined)
|
|
678
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
679
|
+
return message;
|
|
680
|
+
}
|
|
681
|
+
internalBinaryRead(reader, length, options, target) {
|
|
682
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
683
|
+
while (reader.pos < end) {
|
|
684
|
+
let [fieldNo, wireType] = reader.tag();
|
|
685
|
+
switch (fieldNo) {
|
|
686
|
+
case /* optional google.protobuf.Timestamp action_deferred_until */ 1:
|
|
687
|
+
message.actionDeferredUntil = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.actionDeferredUntil);
|
|
688
|
+
break;
|
|
689
|
+
default:
|
|
690
|
+
let u = options.readUnknownField;
|
|
691
|
+
if (u === "throw")
|
|
692
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
693
|
+
let d = reader.skip(wireType);
|
|
694
|
+
if (u !== false)
|
|
695
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
return message;
|
|
699
|
+
}
|
|
700
|
+
internalBinaryWrite(message, writer, options) {
|
|
701
|
+
/* optional google.protobuf.Timestamp action_deferred_until = 1; */
|
|
702
|
+
if (message.actionDeferredUntil)
|
|
703
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.actionDeferredUntil, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
704
|
+
let u = options.writeUnknownFields;
|
|
705
|
+
if (u !== false)
|
|
706
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
707
|
+
return writer;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.DeferredActionState
|
|
712
|
+
*/
|
|
713
|
+
exports.User_DeferredActionState = new User_DeferredActionState$Type();
|
|
714
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
715
|
+
class User_TempBannedState$Type extends runtime_4.MessageType {
|
|
716
|
+
constructor() {
|
|
717
|
+
super("discord_protos.users.v1.User.TempBannedState", [
|
|
718
|
+
{ no: 1, name: "banned_until", kind: "message", T: () => timestamp_1.Timestamp }
|
|
719
|
+
]);
|
|
720
|
+
}
|
|
721
|
+
create(value) {
|
|
722
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
723
|
+
if (value !== undefined)
|
|
724
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
725
|
+
return message;
|
|
726
|
+
}
|
|
727
|
+
internalBinaryRead(reader, length, options, target) {
|
|
728
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
729
|
+
while (reader.pos < end) {
|
|
730
|
+
let [fieldNo, wireType] = reader.tag();
|
|
731
|
+
switch (fieldNo) {
|
|
732
|
+
case /* optional google.protobuf.Timestamp banned_until */ 1:
|
|
733
|
+
message.bannedUntil = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.bannedUntil);
|
|
734
|
+
break;
|
|
735
|
+
default:
|
|
736
|
+
let u = options.readUnknownField;
|
|
737
|
+
if (u === "throw")
|
|
738
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
739
|
+
let d = reader.skip(wireType);
|
|
740
|
+
if (u !== false)
|
|
741
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
return message;
|
|
745
|
+
}
|
|
746
|
+
internalBinaryWrite(message, writer, options) {
|
|
747
|
+
/* optional google.protobuf.Timestamp banned_until = 1; */
|
|
748
|
+
if (message.bannedUntil)
|
|
749
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.bannedUntil, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
750
|
+
let u = options.writeUnknownFields;
|
|
751
|
+
if (u !== false)
|
|
752
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
753
|
+
return writer;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.TempBannedState
|
|
758
|
+
*/
|
|
759
|
+
exports.User_TempBannedState = new User_TempBannedState$Type();
|
|
760
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
761
|
+
class User_BannedState$Type extends runtime_4.MessageType {
|
|
762
|
+
constructor() {
|
|
763
|
+
super("discord_protos.users.v1.User.BannedState", []);
|
|
764
|
+
}
|
|
765
|
+
create(value) {
|
|
766
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
767
|
+
if (value !== undefined)
|
|
768
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
769
|
+
return message;
|
|
770
|
+
}
|
|
771
|
+
internalBinaryRead(reader, length, options, target) {
|
|
772
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
773
|
+
while (reader.pos < end) {
|
|
774
|
+
let [fieldNo, wireType] = reader.tag();
|
|
775
|
+
switch (fieldNo) {
|
|
776
|
+
default:
|
|
777
|
+
let u = options.readUnknownField;
|
|
778
|
+
if (u === "throw")
|
|
779
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
780
|
+
let d = reader.skip(wireType);
|
|
781
|
+
if (u !== false)
|
|
782
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return message;
|
|
786
|
+
}
|
|
787
|
+
internalBinaryWrite(message, writer, options) {
|
|
788
|
+
let u = options.writeUnknownFields;
|
|
789
|
+
if (u !== false)
|
|
790
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
791
|
+
return writer;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.BannedState
|
|
796
|
+
*/
|
|
797
|
+
exports.User_BannedState = new User_BannedState$Type();
|
|
798
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
799
|
+
class User_SafetyState$Type extends runtime_4.MessageType {
|
|
800
|
+
constructor() {
|
|
801
|
+
super("discord_protos.users.v1.User.SafetyState", [
|
|
802
|
+
{ no: 101, name: "normal", kind: "message", oneof: "state", T: () => exports.User_NormalState },
|
|
803
|
+
{ no: 102, name: "restricted", kind: "message", oneof: "state", T: () => exports.User_RestrictedState },
|
|
804
|
+
{ no: 103, name: "deferred_action", kind: "message", oneof: "state", T: () => exports.User_DeferredActionState },
|
|
805
|
+
{ no: 104, name: "temp_banned", kind: "message", oneof: "state", T: () => exports.User_TempBannedState },
|
|
806
|
+
{ no: 105, name: "banned", kind: "message", oneof: "state", T: () => exports.User_BannedState },
|
|
807
|
+
{ no: 1, name: "reason", kind: "enum", T: () => ["discord_protos.users.v1.User.SafetyStateReason", User_SafetyStateReason, "SAFETY_STATE_REASON_"] },
|
|
808
|
+
{ no: 2, name: "annotations", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.User.SafetyAnnotations", User_SafetyAnnotations, "SAFETY_ANNOTATIONS_"] },
|
|
809
|
+
{ no: 3, name: "last_mutation_id", kind: "message", T: () => wrappers_3.UInt64Value }
|
|
810
|
+
]);
|
|
811
|
+
}
|
|
812
|
+
create(value) {
|
|
813
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
814
|
+
message.state = { oneofKind: undefined };
|
|
815
|
+
message.reason = 0;
|
|
816
|
+
message.annotations = [];
|
|
817
|
+
if (value !== undefined)
|
|
818
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
819
|
+
return message;
|
|
820
|
+
}
|
|
821
|
+
internalBinaryRead(reader, length, options, target) {
|
|
822
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
823
|
+
while (reader.pos < end) {
|
|
824
|
+
let [fieldNo, wireType] = reader.tag();
|
|
825
|
+
switch (fieldNo) {
|
|
826
|
+
case /* discord_protos.users.v1.User.NormalState normal */ 101:
|
|
827
|
+
message.state = {
|
|
828
|
+
oneofKind: "normal",
|
|
829
|
+
normal: exports.User_NormalState.internalBinaryRead(reader, reader.uint32(), options, message.state.normal)
|
|
830
|
+
};
|
|
831
|
+
break;
|
|
832
|
+
case /* discord_protos.users.v1.User.RestrictedState restricted */ 102:
|
|
833
|
+
message.state = {
|
|
834
|
+
oneofKind: "restricted",
|
|
835
|
+
restricted: exports.User_RestrictedState.internalBinaryRead(reader, reader.uint32(), options, message.state.restricted)
|
|
836
|
+
};
|
|
837
|
+
break;
|
|
838
|
+
case /* discord_protos.users.v1.User.DeferredActionState deferred_action */ 103:
|
|
839
|
+
message.state = {
|
|
840
|
+
oneofKind: "deferredAction",
|
|
841
|
+
deferredAction: exports.User_DeferredActionState.internalBinaryRead(reader, reader.uint32(), options, message.state.deferredAction)
|
|
842
|
+
};
|
|
843
|
+
break;
|
|
844
|
+
case /* discord_protos.users.v1.User.TempBannedState temp_banned */ 104:
|
|
845
|
+
message.state = {
|
|
846
|
+
oneofKind: "tempBanned",
|
|
847
|
+
tempBanned: exports.User_TempBannedState.internalBinaryRead(reader, reader.uint32(), options, message.state.tempBanned)
|
|
848
|
+
};
|
|
849
|
+
break;
|
|
850
|
+
case /* discord_protos.users.v1.User.BannedState banned */ 105:
|
|
851
|
+
message.state = {
|
|
852
|
+
oneofKind: "banned",
|
|
853
|
+
banned: exports.User_BannedState.internalBinaryRead(reader, reader.uint32(), options, message.state.banned)
|
|
854
|
+
};
|
|
855
|
+
break;
|
|
856
|
+
case /* discord_protos.users.v1.User.SafetyStateReason reason */ 1:
|
|
857
|
+
message.reason = reader.int32();
|
|
858
|
+
break;
|
|
859
|
+
case /* repeated discord_protos.users.v1.User.SafetyAnnotations annotations */ 2:
|
|
860
|
+
if (wireType === runtime_1.WireType.LengthDelimited)
|
|
861
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
862
|
+
message.annotations.push(reader.int32());
|
|
863
|
+
else
|
|
864
|
+
message.annotations.push(reader.int32());
|
|
865
|
+
break;
|
|
866
|
+
case /* optional google.protobuf.UInt64Value last_mutation_id */ 3:
|
|
867
|
+
message.lastMutationId = wrappers_3.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.lastMutationId);
|
|
868
|
+
break;
|
|
869
|
+
default:
|
|
870
|
+
let u = options.readUnknownField;
|
|
871
|
+
if (u === "throw")
|
|
872
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
873
|
+
let d = reader.skip(wireType);
|
|
874
|
+
if (u !== false)
|
|
875
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
return message;
|
|
879
|
+
}
|
|
880
|
+
internalBinaryWrite(message, writer, options) {
|
|
881
|
+
/* discord_protos.users.v1.User.SafetyStateReason reason = 1; */
|
|
882
|
+
if (message.reason !== 0)
|
|
883
|
+
writer.tag(1, runtime_1.WireType.Varint).int32(message.reason);
|
|
884
|
+
/* repeated discord_protos.users.v1.User.SafetyAnnotations annotations = 2; */
|
|
885
|
+
if (message.annotations.length) {
|
|
886
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).fork();
|
|
887
|
+
for (let i = 0; i < message.annotations.length; i++)
|
|
888
|
+
writer.int32(message.annotations[i]);
|
|
889
|
+
writer.join();
|
|
890
|
+
}
|
|
891
|
+
/* optional google.protobuf.UInt64Value last_mutation_id = 3; */
|
|
892
|
+
if (message.lastMutationId)
|
|
893
|
+
wrappers_3.UInt64Value.internalBinaryWrite(message.lastMutationId, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
894
|
+
/* discord_protos.users.v1.User.NormalState normal = 101; */
|
|
895
|
+
if (message.state.oneofKind === "normal")
|
|
896
|
+
exports.User_NormalState.internalBinaryWrite(message.state.normal, writer.tag(101, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
897
|
+
/* discord_protos.users.v1.User.RestrictedState restricted = 102; */
|
|
898
|
+
if (message.state.oneofKind === "restricted")
|
|
899
|
+
exports.User_RestrictedState.internalBinaryWrite(message.state.restricted, writer.tag(102, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
900
|
+
/* discord_protos.users.v1.User.DeferredActionState deferred_action = 103; */
|
|
901
|
+
if (message.state.oneofKind === "deferredAction")
|
|
902
|
+
exports.User_DeferredActionState.internalBinaryWrite(message.state.deferredAction, writer.tag(103, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
903
|
+
/* discord_protos.users.v1.User.TempBannedState temp_banned = 104; */
|
|
904
|
+
if (message.state.oneofKind === "tempBanned")
|
|
905
|
+
exports.User_TempBannedState.internalBinaryWrite(message.state.tempBanned, writer.tag(104, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
906
|
+
/* discord_protos.users.v1.User.BannedState banned = 105; */
|
|
907
|
+
if (message.state.oneofKind === "banned")
|
|
908
|
+
exports.User_BannedState.internalBinaryWrite(message.state.banned, writer.tag(105, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
909
|
+
let u = options.writeUnknownFields;
|
|
910
|
+
if (u !== false)
|
|
911
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
912
|
+
return writer;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.SafetyState
|
|
917
|
+
*/
|
|
918
|
+
exports.User_SafetyState = new User_SafetyState$Type();
|
|
919
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
920
|
+
class User_DisplayNameStyles$Type extends runtime_4.MessageType {
|
|
921
|
+
constructor() {
|
|
922
|
+
super("discord_protos.users.v1.User.DisplayNameStyles", [
|
|
923
|
+
{ no: 1, name: "font_id", kind: "enum", T: () => ["discord_protos.users.v1.User.DisplayNameFont", User_DisplayNameFont, "DISPLAY_NAME_FONT_"] },
|
|
924
|
+
{ no: 2, name: "effect_id", kind: "enum", T: () => ["discord_protos.users.v1.User.DisplayNameEffect", User_DisplayNameEffect, "DISPLAY_NAME_EFFECT_"] },
|
|
925
|
+
{ no: 3, name: "colors", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/ }
|
|
926
|
+
]);
|
|
927
|
+
}
|
|
928
|
+
create(value) {
|
|
929
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
930
|
+
message.fontId = 0;
|
|
931
|
+
message.effectId = 0;
|
|
932
|
+
message.colors = [];
|
|
933
|
+
if (value !== undefined)
|
|
934
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
935
|
+
return message;
|
|
936
|
+
}
|
|
937
|
+
internalBinaryRead(reader, length, options, target) {
|
|
938
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
939
|
+
while (reader.pos < end) {
|
|
940
|
+
let [fieldNo, wireType] = reader.tag();
|
|
941
|
+
switch (fieldNo) {
|
|
942
|
+
case /* discord_protos.users.v1.User.DisplayNameFont font_id */ 1:
|
|
943
|
+
message.fontId = reader.int32();
|
|
944
|
+
break;
|
|
945
|
+
case /* discord_protos.users.v1.User.DisplayNameEffect effect_id */ 2:
|
|
946
|
+
message.effectId = reader.int32();
|
|
947
|
+
break;
|
|
948
|
+
case /* repeated uint32 colors */ 3:
|
|
949
|
+
if (wireType === runtime_1.WireType.LengthDelimited)
|
|
950
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
951
|
+
message.colors.push(reader.uint32());
|
|
952
|
+
else
|
|
953
|
+
message.colors.push(reader.uint32());
|
|
954
|
+
break;
|
|
955
|
+
default:
|
|
956
|
+
let u = options.readUnknownField;
|
|
957
|
+
if (u === "throw")
|
|
958
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
959
|
+
let d = reader.skip(wireType);
|
|
960
|
+
if (u !== false)
|
|
961
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
return message;
|
|
965
|
+
}
|
|
966
|
+
internalBinaryWrite(message, writer, options) {
|
|
967
|
+
/* discord_protos.users.v1.User.DisplayNameFont font_id = 1; */
|
|
968
|
+
if (message.fontId !== 0)
|
|
969
|
+
writer.tag(1, runtime_1.WireType.Varint).int32(message.fontId);
|
|
970
|
+
/* discord_protos.users.v1.User.DisplayNameEffect effect_id = 2; */
|
|
971
|
+
if (message.effectId !== 0)
|
|
972
|
+
writer.tag(2, runtime_1.WireType.Varint).int32(message.effectId);
|
|
973
|
+
/* repeated uint32 colors = 3; */
|
|
974
|
+
if (message.colors.length) {
|
|
975
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).fork();
|
|
976
|
+
for (let i = 0; i < message.colors.length; i++)
|
|
977
|
+
writer.uint32(message.colors[i]);
|
|
978
|
+
writer.join();
|
|
979
|
+
}
|
|
980
|
+
let u = options.writeUnknownFields;
|
|
981
|
+
if (u !== false)
|
|
982
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
983
|
+
return writer;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.DisplayNameStyles
|
|
988
|
+
*/
|
|
989
|
+
exports.User_DisplayNameStyles = new User_DisplayNameStyles$Type();
|