discord-protos 1.2.311 → 1.2.312
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/premium_marketing/v1/PremiumMarketingComponentProperties.proto +3 -0
- package/discord_protos/users/v1/User.proto +5 -0
- package/discord_protos/users/v1/UserData.proto +5 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +13 -1
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +12 -0
- package/dist/discord_protos/users/v1/User.d.ts +23 -0
- package/dist/discord_protos/users/v1/User.js +64 -2
- package/dist/discord_protos/users/v1/UserData.d.ts +23 -0
- package/dist/discord_protos/users/v1/UserData.js +64 -2
- package/package.json +1 -1
|
@@ -734,6 +734,9 @@ message PremiumMarketingComponentProperties {
|
|
|
734
734
|
DISMISSIBLE_CONTENT_TINY_BRONCO = 812;
|
|
735
735
|
DISMISSIBLE_CONTENT_USER_PROFILE_PERSONAL_WIDGET_NEW_BADGE = 813;
|
|
736
736
|
DISMISSIBLE_CONTENT_SCHEDULED_MESSAGES_DRAFT_COACHMARK = 814;
|
|
737
|
+
DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_ANNOUNCEMENT = 815;
|
|
738
|
+
DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_UPSELL = 816;
|
|
739
|
+
DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817;
|
|
737
740
|
}
|
|
738
741
|
|
|
739
742
|
message MobileBottomSheet {
|
|
@@ -707,6 +707,10 @@ message User {
|
|
|
707
707
|
optional google.protobuf.BoolValue animated = 4;
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
+
message VadColors {
|
|
711
|
+
repeated uint32 colors = 1;
|
|
712
|
+
}
|
|
713
|
+
|
|
710
714
|
uint64 id = 1;
|
|
711
715
|
string username = 2;
|
|
712
716
|
string discriminator = 3;
|
|
@@ -719,4 +723,5 @@ message User {
|
|
|
719
723
|
optional UserCollectibles collectibles = 11;
|
|
720
724
|
optional SafetyState safety_state = 12;
|
|
721
725
|
optional DisplayNameStyles display_name_styles = 13;
|
|
726
|
+
optional VadColors vad_colors = 14;
|
|
722
727
|
}
|
|
@@ -963,6 +963,10 @@ message UserData {
|
|
|
963
963
|
TypingSuggestion typing_suggestion = 3;
|
|
964
964
|
}
|
|
965
965
|
|
|
966
|
+
message VadColors {
|
|
967
|
+
repeated uint32 colors = 1;
|
|
968
|
+
}
|
|
969
|
+
|
|
966
970
|
map<fixed64, LinkedUser> linked_users = 1;
|
|
967
971
|
map<uint32, FeatureLimits> safety_feature_limits = 2;
|
|
968
972
|
map<uint32, SafetyFlag> safety_flags = 3;
|
|
@@ -983,4 +987,5 @@ message UserData {
|
|
|
983
987
|
optional AnonymizationInfo anonymization_info = 18;
|
|
984
988
|
optional UserTypingIndicatorStyle typing_indicator_style = 19;
|
|
985
989
|
bool disable_staff_discount = 20;
|
|
990
|
+
optional VadColors vad_colors = 21;
|
|
986
991
|
}
|
|
@@ -3689,7 +3689,19 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
|
|
|
3689
3689
|
/**
|
|
3690
3690
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_SCHEDULED_MESSAGES_DRAFT_COACHMARK = 814;
|
|
3691
3691
|
*/
|
|
3692
|
-
SCHEDULED_MESSAGES_DRAFT_COACHMARK = 814
|
|
3692
|
+
SCHEDULED_MESSAGES_DRAFT_COACHMARK = 814,
|
|
3693
|
+
/**
|
|
3694
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_ANNOUNCEMENT = 815;
|
|
3695
|
+
*/
|
|
3696
|
+
NITRO_FILE_UPLOAD_1GB_ANNOUNCEMENT = 815,
|
|
3697
|
+
/**
|
|
3698
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_UPSELL = 816;
|
|
3699
|
+
*/
|
|
3700
|
+
NITRO_FILE_UPLOAD_1GB_UPSELL = 816,
|
|
3701
|
+
/**
|
|
3702
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817;
|
|
3703
|
+
*/
|
|
3704
|
+
NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817
|
|
3693
3705
|
}
|
|
3694
3706
|
/**
|
|
3695
3707
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -2511,6 +2511,18 @@ var PremiumMarketingComponentProperties_DismissibleContent;
|
|
|
2511
2511
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_SCHEDULED_MESSAGES_DRAFT_COACHMARK = 814;
|
|
2512
2512
|
*/
|
|
2513
2513
|
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["SCHEDULED_MESSAGES_DRAFT_COACHMARK"] = 814] = "SCHEDULED_MESSAGES_DRAFT_COACHMARK";
|
|
2514
|
+
/**
|
|
2515
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_ANNOUNCEMENT = 815;
|
|
2516
|
+
*/
|
|
2517
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["NITRO_FILE_UPLOAD_1GB_ANNOUNCEMENT"] = 815] = "NITRO_FILE_UPLOAD_1GB_ANNOUNCEMENT";
|
|
2518
|
+
/**
|
|
2519
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_UPSELL = 816;
|
|
2520
|
+
*/
|
|
2521
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["NITRO_FILE_UPLOAD_1GB_UPSELL"] = 816] = "NITRO_FILE_UPLOAD_1GB_UPSELL";
|
|
2522
|
+
/**
|
|
2523
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817;
|
|
2524
|
+
*/
|
|
2525
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["NITRO_FILE_UPLOAD_1GB_NEW_BADGE"] = 817] = "NITRO_FILE_UPLOAD_1GB_NEW_BADGE";
|
|
2514
2526
|
})(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
|
|
2515
2527
|
/**
|
|
2516
2528
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -61,6 +61,10 @@ export interface User {
|
|
|
61
61
|
* @generated from protobuf field: optional discord_protos.users.v1.User.DisplayNameStyles display_name_styles = 13
|
|
62
62
|
*/
|
|
63
63
|
displayNameStyles?: User_DisplayNameStyles;
|
|
64
|
+
/**
|
|
65
|
+
* @generated from protobuf field: optional discord_protos.users.v1.User.VadColors vad_colors = 14
|
|
66
|
+
*/
|
|
67
|
+
vadColors?: User_VadColors;
|
|
64
68
|
}
|
|
65
69
|
/**
|
|
66
70
|
* @generated from protobuf message discord_protos.users.v1.User.UserAvatarDecoration
|
|
@@ -261,6 +265,15 @@ export interface User_DisplayNameStyles {
|
|
|
261
265
|
*/
|
|
262
266
|
animated?: BoolValue;
|
|
263
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* @generated from protobuf message discord_protos.users.v1.User.VadColors
|
|
270
|
+
*/
|
|
271
|
+
export interface User_VadColors {
|
|
272
|
+
/**
|
|
273
|
+
* @generated from protobuf field: repeated uint32 colors = 1
|
|
274
|
+
*/
|
|
275
|
+
colors: number[];
|
|
276
|
+
}
|
|
264
277
|
/**
|
|
265
278
|
* @generated from protobuf enum discord_protos.users.v1.User.ClassificationType
|
|
266
279
|
*/
|
|
@@ -2878,4 +2891,14 @@ declare class User_DisplayNameStyles$Type extends MessageType<User_DisplayNameSt
|
|
|
2878
2891
|
* @generated MessageType for protobuf message discord_protos.users.v1.User.DisplayNameStyles
|
|
2879
2892
|
*/
|
|
2880
2893
|
export declare const User_DisplayNameStyles: User_DisplayNameStyles$Type;
|
|
2894
|
+
declare class User_VadColors$Type extends MessageType<User_VadColors> {
|
|
2895
|
+
constructor();
|
|
2896
|
+
create(value?: PartialMessage<User_VadColors>): User_VadColors;
|
|
2897
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: User_VadColors): User_VadColors;
|
|
2898
|
+
internalBinaryWrite(message: User_VadColors, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2899
|
+
}
|
|
2900
|
+
/**
|
|
2901
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.VadColors
|
|
2902
|
+
*/
|
|
2903
|
+
export declare const User_VadColors: User_VadColors$Type;
|
|
2881
2904
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
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 = exports.User_ClassificationType = void 0;
|
|
3
|
+
exports.User_VadColors = 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 = exports.User_ClassificationType = void 0;
|
|
4
4
|
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
5
|
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
6
|
const runtime_3 = require("@protobuf-ts/runtime");
|
|
@@ -2527,7 +2527,8 @@ class User$Type extends runtime_4.MessageType {
|
|
|
2527
2527
|
{ no: 10, name: "primary_guild", kind: "message", T: () => exports.User_UserPrimaryGuild },
|
|
2528
2528
|
{ no: 11, name: "collectibles", kind: "message", T: () => exports.User_UserCollectibles },
|
|
2529
2529
|
{ no: 12, name: "safety_state", kind: "message", T: () => exports.User_SafetyState },
|
|
2530
|
-
{ no: 13, name: "display_name_styles", kind: "message", T: () => exports.User_DisplayNameStyles }
|
|
2530
|
+
{ no: 13, name: "display_name_styles", kind: "message", T: () => exports.User_DisplayNameStyles },
|
|
2531
|
+
{ no: 14, name: "vad_colors", kind: "message", T: () => exports.User_VadColors }
|
|
2531
2532
|
]);
|
|
2532
2533
|
}
|
|
2533
2534
|
create(value) {
|
|
@@ -2582,6 +2583,9 @@ class User$Type extends runtime_4.MessageType {
|
|
|
2582
2583
|
case /* optional discord_protos.users.v1.User.DisplayNameStyles display_name_styles */ 13:
|
|
2583
2584
|
message.displayNameStyles = exports.User_DisplayNameStyles.internalBinaryRead(reader, reader.uint32(), options, message.displayNameStyles);
|
|
2584
2585
|
break;
|
|
2586
|
+
case /* optional discord_protos.users.v1.User.VadColors vad_colors */ 14:
|
|
2587
|
+
message.vadColors = exports.User_VadColors.internalBinaryRead(reader, reader.uint32(), options, message.vadColors);
|
|
2588
|
+
break;
|
|
2585
2589
|
default:
|
|
2586
2590
|
let u = options.readUnknownField;
|
|
2587
2591
|
if (u === "throw")
|
|
@@ -2630,6 +2634,9 @@ class User$Type extends runtime_4.MessageType {
|
|
|
2630
2634
|
/* optional discord_protos.users.v1.User.DisplayNameStyles display_name_styles = 13; */
|
|
2631
2635
|
if (message.displayNameStyles)
|
|
2632
2636
|
exports.User_DisplayNameStyles.internalBinaryWrite(message.displayNameStyles, writer.tag(13, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2637
|
+
/* optional discord_protos.users.v1.User.VadColors vad_colors = 14; */
|
|
2638
|
+
if (message.vadColors)
|
|
2639
|
+
exports.User_VadColors.internalBinaryWrite(message.vadColors, writer.tag(14, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2633
2640
|
let u = options.writeUnknownFields;
|
|
2634
2641
|
if (u !== false)
|
|
2635
2642
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3351,3 +3358,58 @@ class User_DisplayNameStyles$Type extends runtime_4.MessageType {
|
|
|
3351
3358
|
* @generated MessageType for protobuf message discord_protos.users.v1.User.DisplayNameStyles
|
|
3352
3359
|
*/
|
|
3353
3360
|
exports.User_DisplayNameStyles = new User_DisplayNameStyles$Type();
|
|
3361
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3362
|
+
class User_VadColors$Type extends runtime_4.MessageType {
|
|
3363
|
+
constructor() {
|
|
3364
|
+
super("discord_protos.users.v1.User.VadColors", [
|
|
3365
|
+
{ no: 1, name: "colors", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/ }
|
|
3366
|
+
]);
|
|
3367
|
+
}
|
|
3368
|
+
create(value) {
|
|
3369
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3370
|
+
message.colors = [];
|
|
3371
|
+
if (value !== undefined)
|
|
3372
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3373
|
+
return message;
|
|
3374
|
+
}
|
|
3375
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3376
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3377
|
+
while (reader.pos < end) {
|
|
3378
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3379
|
+
switch (fieldNo) {
|
|
3380
|
+
case /* repeated uint32 colors */ 1:
|
|
3381
|
+
if (wireType === runtime_1.WireType.LengthDelimited)
|
|
3382
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
3383
|
+
message.colors.push(reader.uint32());
|
|
3384
|
+
else
|
|
3385
|
+
message.colors.push(reader.uint32());
|
|
3386
|
+
break;
|
|
3387
|
+
default:
|
|
3388
|
+
let u = options.readUnknownField;
|
|
3389
|
+
if (u === "throw")
|
|
3390
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3391
|
+
let d = reader.skip(wireType);
|
|
3392
|
+
if (u !== false)
|
|
3393
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
return message;
|
|
3397
|
+
}
|
|
3398
|
+
internalBinaryWrite(message, writer, options) {
|
|
3399
|
+
/* repeated uint32 colors = 1; */
|
|
3400
|
+
if (message.colors.length) {
|
|
3401
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).fork();
|
|
3402
|
+
for (let i = 0; i < message.colors.length; i++)
|
|
3403
|
+
writer.uint32(message.colors[i]);
|
|
3404
|
+
writer.join();
|
|
3405
|
+
}
|
|
3406
|
+
let u = options.writeUnknownFields;
|
|
3407
|
+
if (u !== false)
|
|
3408
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3409
|
+
return writer;
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.User.VadColors
|
|
3414
|
+
*/
|
|
3415
|
+
exports.User_VadColors = new User_VadColors$Type();
|
|
@@ -98,6 +98,10 @@ export interface UserData {
|
|
|
98
98
|
* @generated from protobuf field: bool disable_staff_discount = 20
|
|
99
99
|
*/
|
|
100
100
|
disableStaffDiscount: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf field: optional discord_protos.users.v1.UserData.VadColors vad_colors = 21
|
|
103
|
+
*/
|
|
104
|
+
vadColors?: UserData_VadColors;
|
|
101
105
|
}
|
|
102
106
|
/**
|
|
103
107
|
* @generated from protobuf message discord_protos.users.v1.UserData.LinkedUser
|
|
@@ -695,6 +699,15 @@ export interface UserData_UserTypingIndicatorStyle {
|
|
|
695
699
|
*/
|
|
696
700
|
typingSuggestion: UserData_TypingSuggestion;
|
|
697
701
|
}
|
|
702
|
+
/**
|
|
703
|
+
* @generated from protobuf message discord_protos.users.v1.UserData.VadColors
|
|
704
|
+
*/
|
|
705
|
+
export interface UserData_VadColors {
|
|
706
|
+
/**
|
|
707
|
+
* @generated from protobuf field: repeated uint32 colors = 1
|
|
708
|
+
*/
|
|
709
|
+
colors: number[];
|
|
710
|
+
}
|
|
698
711
|
/**
|
|
699
712
|
* @generated from protobuf enum discord_protos.users.v1.UserData.UserLinkType
|
|
700
713
|
*/
|
|
@@ -3933,4 +3946,14 @@ declare class UserData_UserTypingIndicatorStyle$Type extends MessageType<UserDat
|
|
|
3933
3946
|
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserTypingIndicatorStyle
|
|
3934
3947
|
*/
|
|
3935
3948
|
export declare const UserData_UserTypingIndicatorStyle: UserData_UserTypingIndicatorStyle$Type;
|
|
3949
|
+
declare class UserData_VadColors$Type extends MessageType<UserData_VadColors> {
|
|
3950
|
+
constructor();
|
|
3951
|
+
create(value?: PartialMessage<UserData_VadColors>): UserData_VadColors;
|
|
3952
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserData_VadColors): UserData_VadColors;
|
|
3953
|
+
internalBinaryWrite(message: UserData_VadColors, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3954
|
+
}
|
|
3955
|
+
/**
|
|
3956
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.VadColors
|
|
3957
|
+
*/
|
|
3958
|
+
export declare const UserData_VadColors: UserData_VadColors$Type;
|
|
3936
3959
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserData_UserCountryData = exports.UserData_UserBadges = exports.UserData_Badge = exports.UserData_AprilFools2026Badge = exports.UserData_BadgeCommon = exports.UserData_Perks = exports.UserData_PerkConfig = exports.UserData_PerkConfigIncreasedGuildLimit = exports.UserData_PerkConfigIncreasedFileUploadSize = exports.UserData_AgeAssuranceData = exports.UserData_RestrictedSchedule = exports.UserData_ScheduleRule = exports.UserData_TimeOfDay = exports.UserData_StoreCountry = exports.UserData_DisplayNameStyles = exports.UserData_PremiumState = exports.UserData_SafetyState = exports.UserData_BannedState = exports.UserData_TempBannedState = exports.UserData_DeferredActionState = exports.UserData_RestrictedState = exports.UserData_NormalState = exports.UserData_UserCollectibles = exports.UserData_UserNameplate = exports.UserData_CrossPlatformRestriction = exports.UserData_UserPrimaryGuild = exports.UserData_QuestMetadata = exports.UserData_SafetyFlag = exports.UserData_FeatureLimits = exports.UserData_RateLimitData = exports.UserData_LinkedUser = exports.UserData = exports.UserData_TypingSuggestion = exports.UserData_TypingIndicatorAnimation = exports.UserData_AnonymizationStatus = exports.UserData_PerkSource = exports.UserData_AgeAssuranceGroup = exports.UserData_AgeAssuranceVendor = exports.UserData_AgeAssuranceMethod = exports.UserData_DayOfWeek = exports.UserData_DisplayNameEffect = exports.UserData_DisplayNameFont = exports.UserData_PremiumSubscriptionGroupRole = exports.UserData_PremiumSubscriptionType = exports.UserData_PremiumSource = exports.UserData_SafetyAnnotations = exports.UserData_SafetyStateReason = exports.UserData_ClassificationType = exports.UserData_UserLinkStatus = exports.UserData_UserLinkType = void 0;
|
|
4
|
-
exports.UserData_UserTypingIndicatorStyle = exports.UserData_TypingIndicatorEmoji = exports.UserData_AnonymizationInfo = void 0;
|
|
4
|
+
exports.UserData_VadColors = exports.UserData_UserTypingIndicatorStyle = exports.UserData_TypingIndicatorEmoji = exports.UserData_AnonymizationInfo = void 0;
|
|
5
5
|
const runtime_1 = require("@protobuf-ts/runtime");
|
|
6
6
|
const runtime_2 = require("@protobuf-ts/runtime");
|
|
7
7
|
const runtime_3 = require("@protobuf-ts/runtime");
|
|
@@ -2933,7 +2933,8 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
2933
2933
|
{ no: 17, name: "is_pending_required_action", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2934
2934
|
{ no: 18, name: "anonymization_info", kind: "message", T: () => exports.UserData_AnonymizationInfo },
|
|
2935
2935
|
{ no: 19, name: "typing_indicator_style", kind: "message", T: () => exports.UserData_UserTypingIndicatorStyle },
|
|
2936
|
-
{ no: 20, name: "disable_staff_discount", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
2936
|
+
{ no: 20, name: "disable_staff_discount", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2937
|
+
{ no: 21, name: "vad_colors", kind: "message", T: () => exports.UserData_VadColors }
|
|
2937
2938
|
]);
|
|
2938
2939
|
}
|
|
2939
2940
|
create(value) {
|
|
@@ -3012,6 +3013,9 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
3012
3013
|
case /* bool disable_staff_discount */ 20:
|
|
3013
3014
|
message.disableStaffDiscount = reader.bool();
|
|
3014
3015
|
break;
|
|
3016
|
+
case /* optional discord_protos.users.v1.UserData.VadColors vad_colors */ 21:
|
|
3017
|
+
message.vadColors = exports.UserData_VadColors.internalBinaryRead(reader, reader.uint32(), options, message.vadColors);
|
|
3018
|
+
break;
|
|
3015
3019
|
default:
|
|
3016
3020
|
let u = options.readUnknownField;
|
|
3017
3021
|
if (u === "throw")
|
|
@@ -3144,6 +3148,9 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
3144
3148
|
/* bool disable_staff_discount = 20; */
|
|
3145
3149
|
if (message.disableStaffDiscount !== false)
|
|
3146
3150
|
writer.tag(20, runtime_1.WireType.Varint).bool(message.disableStaffDiscount);
|
|
3151
|
+
/* optional discord_protos.users.v1.UserData.VadColors vad_colors = 21; */
|
|
3152
|
+
if (message.vadColors)
|
|
3153
|
+
exports.UserData_VadColors.internalBinaryWrite(message.vadColors, writer.tag(21, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3147
3154
|
let u = options.writeUnknownFields;
|
|
3148
3155
|
if (u !== false)
|
|
3149
3156
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5334,3 +5341,58 @@ class UserData_UserTypingIndicatorStyle$Type extends runtime_4.MessageType {
|
|
|
5334
5341
|
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserTypingIndicatorStyle
|
|
5335
5342
|
*/
|
|
5336
5343
|
exports.UserData_UserTypingIndicatorStyle = new UserData_UserTypingIndicatorStyle$Type();
|
|
5344
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
5345
|
+
class UserData_VadColors$Type extends runtime_4.MessageType {
|
|
5346
|
+
constructor() {
|
|
5347
|
+
super("discord_protos.users.v1.UserData.VadColors", [
|
|
5348
|
+
{ no: 1, name: "colors", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/ }
|
|
5349
|
+
]);
|
|
5350
|
+
}
|
|
5351
|
+
create(value) {
|
|
5352
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
5353
|
+
message.colors = [];
|
|
5354
|
+
if (value !== undefined)
|
|
5355
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
5356
|
+
return message;
|
|
5357
|
+
}
|
|
5358
|
+
internalBinaryRead(reader, length, options, target) {
|
|
5359
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
5360
|
+
while (reader.pos < end) {
|
|
5361
|
+
let [fieldNo, wireType] = reader.tag();
|
|
5362
|
+
switch (fieldNo) {
|
|
5363
|
+
case /* repeated uint32 colors */ 1:
|
|
5364
|
+
if (wireType === runtime_1.WireType.LengthDelimited)
|
|
5365
|
+
for (let e = reader.int32() + reader.pos; reader.pos < e;)
|
|
5366
|
+
message.colors.push(reader.uint32());
|
|
5367
|
+
else
|
|
5368
|
+
message.colors.push(reader.uint32());
|
|
5369
|
+
break;
|
|
5370
|
+
default:
|
|
5371
|
+
let u = options.readUnknownField;
|
|
5372
|
+
if (u === "throw")
|
|
5373
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5374
|
+
let d = reader.skip(wireType);
|
|
5375
|
+
if (u !== false)
|
|
5376
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5377
|
+
}
|
|
5378
|
+
}
|
|
5379
|
+
return message;
|
|
5380
|
+
}
|
|
5381
|
+
internalBinaryWrite(message, writer, options) {
|
|
5382
|
+
/* repeated uint32 colors = 1; */
|
|
5383
|
+
if (message.colors.length) {
|
|
5384
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).fork();
|
|
5385
|
+
for (let i = 0; i < message.colors.length; i++)
|
|
5386
|
+
writer.uint32(message.colors[i]);
|
|
5387
|
+
writer.join();
|
|
5388
|
+
}
|
|
5389
|
+
let u = options.writeUnknownFields;
|
|
5390
|
+
if (u !== false)
|
|
5391
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5392
|
+
return writer;
|
|
5393
|
+
}
|
|
5394
|
+
}
|
|
5395
|
+
/**
|
|
5396
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.VadColors
|
|
5397
|
+
*/
|
|
5398
|
+
exports.UserData_VadColors = new UserData_VadColors$Type();
|