discord-protos 1.2.294 → 1.2.295
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.
|
@@ -908,6 +908,36 @@ message UserData {
|
|
|
908
908
|
optional google.protobuf.UInt64Value anon_user_id = 2;
|
|
909
909
|
}
|
|
910
910
|
|
|
911
|
+
message TypingIndicatorEmoji {
|
|
912
|
+
oneof emoji {
|
|
913
|
+
fixed64 custom_emoji_id = 1;
|
|
914
|
+
string unicode_emoji = 2;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
enum TypingIndicatorAnimation {
|
|
919
|
+
TYPING_INDICATOR_ANIMATION_UNSPECIFIED = 0;
|
|
920
|
+
TYPING_INDICATOR_ANIMATION_PULSE = 1;
|
|
921
|
+
TYPING_INDICATOR_ANIMATION_RING = 2;
|
|
922
|
+
TYPING_INDICATOR_ANIMATION_WAVE = 3;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
enum TypingSuggestion {
|
|
926
|
+
TYPING_SUGGESTION_UNSPECIFIED = 0;
|
|
927
|
+
TYPING_SUGGESTION_YAPPING = 1;
|
|
928
|
+
TYPING_SUGGESTION_VENTING = 2;
|
|
929
|
+
TYPING_SUGGESTION_OVERSHARING = 3;
|
|
930
|
+
TYPING_SUGGESTION_BARKING = 4;
|
|
931
|
+
TYPING_SUGGESTION_BABBLING = 5;
|
|
932
|
+
TYPING_SUGGESTION_DAYDREAMING = 6;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
message UserTypingIndicatorStyle {
|
|
936
|
+
repeated TypingIndicatorEmoji emojis = 1;
|
|
937
|
+
TypingIndicatorAnimation animation = 2;
|
|
938
|
+
TypingSuggestion typing_suggestion = 3;
|
|
939
|
+
}
|
|
940
|
+
|
|
911
941
|
map<fixed64, LinkedUser> linked_users = 1;
|
|
912
942
|
map<uint32, FeatureLimits> safety_feature_limits = 2;
|
|
913
943
|
map<uint32, SafetyFlag> safety_flags = 3;
|
|
@@ -926,4 +956,5 @@ message UserData {
|
|
|
926
956
|
optional UserCountryData country_data = 16;
|
|
927
957
|
bool is_pending_required_action = 17;
|
|
928
958
|
optional AnonymizationInfo anonymization_info = 18;
|
|
959
|
+
optional UserTypingIndicatorStyle typing_indicator_style = 19;
|
|
929
960
|
}
|
|
@@ -90,6 +90,10 @@ export interface UserData {
|
|
|
90
90
|
* @generated from protobuf field: optional discord_protos.users.v1.UserData.AnonymizationInfo anonymization_info = 18
|
|
91
91
|
*/
|
|
92
92
|
anonymizationInfo?: UserData_AnonymizationInfo;
|
|
93
|
+
/**
|
|
94
|
+
* @generated from protobuf field: optional discord_protos.users.v1.UserData.UserTypingIndicatorStyle typing_indicator_style = 19
|
|
95
|
+
*/
|
|
96
|
+
typingIndicatorStyle?: UserData_UserTypingIndicatorStyle;
|
|
93
97
|
}
|
|
94
98
|
/**
|
|
95
99
|
* @generated from protobuf message discord_protos.users.v1.UserData.LinkedUser
|
|
@@ -639,6 +643,46 @@ export interface UserData_AnonymizationInfo {
|
|
|
639
643
|
*/
|
|
640
644
|
anonUserId?: UInt64Value;
|
|
641
645
|
}
|
|
646
|
+
/**
|
|
647
|
+
* @generated from protobuf message discord_protos.users.v1.UserData.TypingIndicatorEmoji
|
|
648
|
+
*/
|
|
649
|
+
export interface UserData_TypingIndicatorEmoji {
|
|
650
|
+
/**
|
|
651
|
+
* @generated from protobuf oneof: emoji
|
|
652
|
+
*/
|
|
653
|
+
emoji: {
|
|
654
|
+
oneofKind: "customEmojiId";
|
|
655
|
+
/**
|
|
656
|
+
* @generated from protobuf field: fixed64 custom_emoji_id = 1
|
|
657
|
+
*/
|
|
658
|
+
customEmojiId: bigint;
|
|
659
|
+
} | {
|
|
660
|
+
oneofKind: "unicodeEmoji";
|
|
661
|
+
/**
|
|
662
|
+
* @generated from protobuf field: string unicode_emoji = 2
|
|
663
|
+
*/
|
|
664
|
+
unicodeEmoji: string;
|
|
665
|
+
} | {
|
|
666
|
+
oneofKind: undefined;
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* @generated from protobuf message discord_protos.users.v1.UserData.UserTypingIndicatorStyle
|
|
671
|
+
*/
|
|
672
|
+
export interface UserData_UserTypingIndicatorStyle {
|
|
673
|
+
/**
|
|
674
|
+
* @generated from protobuf field: repeated discord_protos.users.v1.UserData.TypingIndicatorEmoji emojis = 1
|
|
675
|
+
*/
|
|
676
|
+
emojis: UserData_TypingIndicatorEmoji[];
|
|
677
|
+
/**
|
|
678
|
+
* @generated from protobuf field: discord_protos.users.v1.UserData.TypingIndicatorAnimation animation = 2
|
|
679
|
+
*/
|
|
680
|
+
animation: UserData_TypingIndicatorAnimation;
|
|
681
|
+
/**
|
|
682
|
+
* @generated from protobuf field: discord_protos.users.v1.UserData.TypingSuggestion typing_suggestion = 3
|
|
683
|
+
*/
|
|
684
|
+
typingSuggestion: UserData_TypingSuggestion;
|
|
685
|
+
}
|
|
642
686
|
/**
|
|
643
687
|
* @generated from protobuf enum discord_protos.users.v1.UserData.UserLinkType
|
|
644
688
|
*/
|
|
@@ -3375,6 +3419,60 @@ export declare enum UserData_AnonymizationStatus {
|
|
|
3375
3419
|
*/
|
|
3376
3420
|
ANONYMOUS_USER = 3
|
|
3377
3421
|
}
|
|
3422
|
+
/**
|
|
3423
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.TypingIndicatorAnimation
|
|
3424
|
+
*/
|
|
3425
|
+
export declare enum UserData_TypingIndicatorAnimation {
|
|
3426
|
+
/**
|
|
3427
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_UNSPECIFIED = 0;
|
|
3428
|
+
*/
|
|
3429
|
+
UNSPECIFIED = 0,
|
|
3430
|
+
/**
|
|
3431
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_PULSE = 1;
|
|
3432
|
+
*/
|
|
3433
|
+
PULSE = 1,
|
|
3434
|
+
/**
|
|
3435
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_RING = 2;
|
|
3436
|
+
*/
|
|
3437
|
+
RING = 2,
|
|
3438
|
+
/**
|
|
3439
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_WAVE = 3;
|
|
3440
|
+
*/
|
|
3441
|
+
WAVE = 3
|
|
3442
|
+
}
|
|
3443
|
+
/**
|
|
3444
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.TypingSuggestion
|
|
3445
|
+
*/
|
|
3446
|
+
export declare enum UserData_TypingSuggestion {
|
|
3447
|
+
/**
|
|
3448
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_UNSPECIFIED = 0;
|
|
3449
|
+
*/
|
|
3450
|
+
UNSPECIFIED = 0,
|
|
3451
|
+
/**
|
|
3452
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_YAPPING = 1;
|
|
3453
|
+
*/
|
|
3454
|
+
YAPPING = 1,
|
|
3455
|
+
/**
|
|
3456
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_VENTING = 2;
|
|
3457
|
+
*/
|
|
3458
|
+
VENTING = 2,
|
|
3459
|
+
/**
|
|
3460
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_OVERSHARING = 3;
|
|
3461
|
+
*/
|
|
3462
|
+
OVERSHARING = 3,
|
|
3463
|
+
/**
|
|
3464
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_BARKING = 4;
|
|
3465
|
+
*/
|
|
3466
|
+
BARKING = 4,
|
|
3467
|
+
/**
|
|
3468
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_BABBLING = 5;
|
|
3469
|
+
*/
|
|
3470
|
+
BABBLING = 5,
|
|
3471
|
+
/**
|
|
3472
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_DAYDREAMING = 6;
|
|
3473
|
+
*/
|
|
3474
|
+
DAYDREAMING = 6
|
|
3475
|
+
}
|
|
3378
3476
|
declare class UserData$Type extends MessageType<UserData> {
|
|
3379
3477
|
constructor();
|
|
3380
3478
|
create(value?: PartialMessage<UserData>): UserData;
|
|
@@ -3711,4 +3809,24 @@ declare class UserData_AnonymizationInfo$Type extends MessageType<UserData_Anony
|
|
|
3711
3809
|
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.AnonymizationInfo
|
|
3712
3810
|
*/
|
|
3713
3811
|
export declare const UserData_AnonymizationInfo: UserData_AnonymizationInfo$Type;
|
|
3812
|
+
declare class UserData_TypingIndicatorEmoji$Type extends MessageType<UserData_TypingIndicatorEmoji> {
|
|
3813
|
+
constructor();
|
|
3814
|
+
create(value?: PartialMessage<UserData_TypingIndicatorEmoji>): UserData_TypingIndicatorEmoji;
|
|
3815
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserData_TypingIndicatorEmoji): UserData_TypingIndicatorEmoji;
|
|
3816
|
+
internalBinaryWrite(message: UserData_TypingIndicatorEmoji, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3817
|
+
}
|
|
3818
|
+
/**
|
|
3819
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.TypingIndicatorEmoji
|
|
3820
|
+
*/
|
|
3821
|
+
export declare const UserData_TypingIndicatorEmoji: UserData_TypingIndicatorEmoji$Type;
|
|
3822
|
+
declare class UserData_UserTypingIndicatorStyle$Type extends MessageType<UserData_UserTypingIndicatorStyle> {
|
|
3823
|
+
constructor();
|
|
3824
|
+
create(value?: PartialMessage<UserData_UserTypingIndicatorStyle>): UserData_UserTypingIndicatorStyle;
|
|
3825
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserData_UserTypingIndicatorStyle): UserData_UserTypingIndicatorStyle;
|
|
3826
|
+
internalBinaryWrite(message: UserData_UserTypingIndicatorStyle, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3827
|
+
}
|
|
3828
|
+
/**
|
|
3829
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserTypingIndicatorStyle
|
|
3830
|
+
*/
|
|
3831
|
+
export declare const UserData_UserTypingIndicatorStyle: UserData_UserTypingIndicatorStyle$Type;
|
|
3714
3832
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
5
|
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
6
|
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
7
|
const runtime_3 = require("@protobuf-ts/runtime");
|
|
@@ -2761,6 +2762,62 @@ var UserData_AnonymizationStatus;
|
|
|
2761
2762
|
*/
|
|
2762
2763
|
UserData_AnonymizationStatus[UserData_AnonymizationStatus["ANONYMOUS_USER"] = 3] = "ANONYMOUS_USER";
|
|
2763
2764
|
})(UserData_AnonymizationStatus || (exports.UserData_AnonymizationStatus = UserData_AnonymizationStatus = {}));
|
|
2765
|
+
/**
|
|
2766
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.TypingIndicatorAnimation
|
|
2767
|
+
*/
|
|
2768
|
+
var UserData_TypingIndicatorAnimation;
|
|
2769
|
+
(function (UserData_TypingIndicatorAnimation) {
|
|
2770
|
+
/**
|
|
2771
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_UNSPECIFIED = 0;
|
|
2772
|
+
*/
|
|
2773
|
+
UserData_TypingIndicatorAnimation[UserData_TypingIndicatorAnimation["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
2774
|
+
/**
|
|
2775
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_PULSE = 1;
|
|
2776
|
+
*/
|
|
2777
|
+
UserData_TypingIndicatorAnimation[UserData_TypingIndicatorAnimation["PULSE"] = 1] = "PULSE";
|
|
2778
|
+
/**
|
|
2779
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_RING = 2;
|
|
2780
|
+
*/
|
|
2781
|
+
UserData_TypingIndicatorAnimation[UserData_TypingIndicatorAnimation["RING"] = 2] = "RING";
|
|
2782
|
+
/**
|
|
2783
|
+
* @generated from protobuf enum value: TYPING_INDICATOR_ANIMATION_WAVE = 3;
|
|
2784
|
+
*/
|
|
2785
|
+
UserData_TypingIndicatorAnimation[UserData_TypingIndicatorAnimation["WAVE"] = 3] = "WAVE";
|
|
2786
|
+
})(UserData_TypingIndicatorAnimation || (exports.UserData_TypingIndicatorAnimation = UserData_TypingIndicatorAnimation = {}));
|
|
2787
|
+
/**
|
|
2788
|
+
* @generated from protobuf enum discord_protos.users.v1.UserData.TypingSuggestion
|
|
2789
|
+
*/
|
|
2790
|
+
var UserData_TypingSuggestion;
|
|
2791
|
+
(function (UserData_TypingSuggestion) {
|
|
2792
|
+
/**
|
|
2793
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_UNSPECIFIED = 0;
|
|
2794
|
+
*/
|
|
2795
|
+
UserData_TypingSuggestion[UserData_TypingSuggestion["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
2796
|
+
/**
|
|
2797
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_YAPPING = 1;
|
|
2798
|
+
*/
|
|
2799
|
+
UserData_TypingSuggestion[UserData_TypingSuggestion["YAPPING"] = 1] = "YAPPING";
|
|
2800
|
+
/**
|
|
2801
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_VENTING = 2;
|
|
2802
|
+
*/
|
|
2803
|
+
UserData_TypingSuggestion[UserData_TypingSuggestion["VENTING"] = 2] = "VENTING";
|
|
2804
|
+
/**
|
|
2805
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_OVERSHARING = 3;
|
|
2806
|
+
*/
|
|
2807
|
+
UserData_TypingSuggestion[UserData_TypingSuggestion["OVERSHARING"] = 3] = "OVERSHARING";
|
|
2808
|
+
/**
|
|
2809
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_BARKING = 4;
|
|
2810
|
+
*/
|
|
2811
|
+
UserData_TypingSuggestion[UserData_TypingSuggestion["BARKING"] = 4] = "BARKING";
|
|
2812
|
+
/**
|
|
2813
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_BABBLING = 5;
|
|
2814
|
+
*/
|
|
2815
|
+
UserData_TypingSuggestion[UserData_TypingSuggestion["BABBLING"] = 5] = "BABBLING";
|
|
2816
|
+
/**
|
|
2817
|
+
* @generated from protobuf enum value: TYPING_SUGGESTION_DAYDREAMING = 6;
|
|
2818
|
+
*/
|
|
2819
|
+
UserData_TypingSuggestion[UserData_TypingSuggestion["DAYDREAMING"] = 6] = "DAYDREAMING";
|
|
2820
|
+
})(UserData_TypingSuggestion || (exports.UserData_TypingSuggestion = UserData_TypingSuggestion = {}));
|
|
2764
2821
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2765
2822
|
class UserData$Type extends runtime_4.MessageType {
|
|
2766
2823
|
constructor() {
|
|
@@ -2782,7 +2839,8 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
2782
2839
|
{ no: 15, name: "badges", kind: "message", T: () => exports.UserData_UserBadges },
|
|
2783
2840
|
{ no: 16, name: "country_data", kind: "message", T: () => exports.UserData_UserCountryData },
|
|
2784
2841
|
{ no: 17, name: "is_pending_required_action", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2785
|
-
{ no: 18, name: "anonymization_info", kind: "message", T: () => exports.UserData_AnonymizationInfo }
|
|
2842
|
+
{ no: 18, name: "anonymization_info", kind: "message", T: () => exports.UserData_AnonymizationInfo },
|
|
2843
|
+
{ no: 19, name: "typing_indicator_style", kind: "message", T: () => exports.UserData_UserTypingIndicatorStyle }
|
|
2786
2844
|
]);
|
|
2787
2845
|
}
|
|
2788
2846
|
create(value) {
|
|
@@ -2854,6 +2912,9 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
2854
2912
|
case /* optional discord_protos.users.v1.UserData.AnonymizationInfo anonymization_info */ 18:
|
|
2855
2913
|
message.anonymizationInfo = exports.UserData_AnonymizationInfo.internalBinaryRead(reader, reader.uint32(), options, message.anonymizationInfo);
|
|
2856
2914
|
break;
|
|
2915
|
+
case /* optional discord_protos.users.v1.UserData.UserTypingIndicatorStyle typing_indicator_style */ 19:
|
|
2916
|
+
message.typingIndicatorStyle = exports.UserData_UserTypingIndicatorStyle.internalBinaryRead(reader, reader.uint32(), options, message.typingIndicatorStyle);
|
|
2917
|
+
break;
|
|
2857
2918
|
default:
|
|
2858
2919
|
let u = options.readUnknownField;
|
|
2859
2920
|
if (u === "throw")
|
|
@@ -2980,6 +3041,9 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
2980
3041
|
/* optional discord_protos.users.v1.UserData.AnonymizationInfo anonymization_info = 18; */
|
|
2981
3042
|
if (message.anonymizationInfo)
|
|
2982
3043
|
exports.UserData_AnonymizationInfo.internalBinaryWrite(message.anonymizationInfo, writer.tag(18, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3044
|
+
/* optional discord_protos.users.v1.UserData.UserTypingIndicatorStyle typing_indicator_style = 19; */
|
|
3045
|
+
if (message.typingIndicatorStyle)
|
|
3046
|
+
exports.UserData_UserTypingIndicatorStyle.internalBinaryWrite(message.typingIndicatorStyle, writer.tag(19, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2983
3047
|
let u = options.writeUnknownFields;
|
|
2984
3048
|
if (u !== false)
|
|
2985
3049
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5032,3 +5096,126 @@ class UserData_AnonymizationInfo$Type extends runtime_4.MessageType {
|
|
|
5032
5096
|
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.AnonymizationInfo
|
|
5033
5097
|
*/
|
|
5034
5098
|
exports.UserData_AnonymizationInfo = new UserData_AnonymizationInfo$Type();
|
|
5099
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
5100
|
+
class UserData_TypingIndicatorEmoji$Type extends runtime_4.MessageType {
|
|
5101
|
+
constructor() {
|
|
5102
|
+
super("discord_protos.users.v1.UserData.TypingIndicatorEmoji", [
|
|
5103
|
+
{ no: 1, name: "custom_emoji_id", kind: "scalar", oneof: "emoji", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
5104
|
+
{ no: 2, name: "unicode_emoji", kind: "scalar", oneof: "emoji", T: 9 /*ScalarType.STRING*/ }
|
|
5105
|
+
]);
|
|
5106
|
+
}
|
|
5107
|
+
create(value) {
|
|
5108
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
5109
|
+
message.emoji = { oneofKind: undefined };
|
|
5110
|
+
if (value !== undefined)
|
|
5111
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
5112
|
+
return message;
|
|
5113
|
+
}
|
|
5114
|
+
internalBinaryRead(reader, length, options, target) {
|
|
5115
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
5116
|
+
while (reader.pos < end) {
|
|
5117
|
+
let [fieldNo, wireType] = reader.tag();
|
|
5118
|
+
switch (fieldNo) {
|
|
5119
|
+
case /* fixed64 custom_emoji_id */ 1:
|
|
5120
|
+
message.emoji = {
|
|
5121
|
+
oneofKind: "customEmojiId",
|
|
5122
|
+
customEmojiId: reader.fixed64().toBigInt()
|
|
5123
|
+
};
|
|
5124
|
+
break;
|
|
5125
|
+
case /* string unicode_emoji */ 2:
|
|
5126
|
+
message.emoji = {
|
|
5127
|
+
oneofKind: "unicodeEmoji",
|
|
5128
|
+
unicodeEmoji: reader.string()
|
|
5129
|
+
};
|
|
5130
|
+
break;
|
|
5131
|
+
default:
|
|
5132
|
+
let u = options.readUnknownField;
|
|
5133
|
+
if (u === "throw")
|
|
5134
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5135
|
+
let d = reader.skip(wireType);
|
|
5136
|
+
if (u !== false)
|
|
5137
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5138
|
+
}
|
|
5139
|
+
}
|
|
5140
|
+
return message;
|
|
5141
|
+
}
|
|
5142
|
+
internalBinaryWrite(message, writer, options) {
|
|
5143
|
+
/* fixed64 custom_emoji_id = 1; */
|
|
5144
|
+
if (message.emoji.oneofKind === "customEmojiId")
|
|
5145
|
+
writer.tag(1, runtime_1.WireType.Bit64).fixed64(message.emoji.customEmojiId);
|
|
5146
|
+
/* string unicode_emoji = 2; */
|
|
5147
|
+
if (message.emoji.oneofKind === "unicodeEmoji")
|
|
5148
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.emoji.unicodeEmoji);
|
|
5149
|
+
let u = options.writeUnknownFields;
|
|
5150
|
+
if (u !== false)
|
|
5151
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5152
|
+
return writer;
|
|
5153
|
+
}
|
|
5154
|
+
}
|
|
5155
|
+
/**
|
|
5156
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.TypingIndicatorEmoji
|
|
5157
|
+
*/
|
|
5158
|
+
exports.UserData_TypingIndicatorEmoji = new UserData_TypingIndicatorEmoji$Type();
|
|
5159
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
5160
|
+
class UserData_UserTypingIndicatorStyle$Type extends runtime_4.MessageType {
|
|
5161
|
+
constructor() {
|
|
5162
|
+
super("discord_protos.users.v1.UserData.UserTypingIndicatorStyle", [
|
|
5163
|
+
{ no: 1, name: "emojis", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.UserData_TypingIndicatorEmoji },
|
|
5164
|
+
{ no: 2, name: "animation", kind: "enum", T: () => ["discord_protos.users.v1.UserData.TypingIndicatorAnimation", UserData_TypingIndicatorAnimation, "TYPING_INDICATOR_ANIMATION_"] },
|
|
5165
|
+
{ no: 3, name: "typing_suggestion", kind: "enum", T: () => ["discord_protos.users.v1.UserData.TypingSuggestion", UserData_TypingSuggestion, "TYPING_SUGGESTION_"] }
|
|
5166
|
+
]);
|
|
5167
|
+
}
|
|
5168
|
+
create(value) {
|
|
5169
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
5170
|
+
message.emojis = [];
|
|
5171
|
+
message.animation = 0;
|
|
5172
|
+
message.typingSuggestion = 0;
|
|
5173
|
+
if (value !== undefined)
|
|
5174
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
5175
|
+
return message;
|
|
5176
|
+
}
|
|
5177
|
+
internalBinaryRead(reader, length, options, target) {
|
|
5178
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
5179
|
+
while (reader.pos < end) {
|
|
5180
|
+
let [fieldNo, wireType] = reader.tag();
|
|
5181
|
+
switch (fieldNo) {
|
|
5182
|
+
case /* repeated discord_protos.users.v1.UserData.TypingIndicatorEmoji emojis */ 1:
|
|
5183
|
+
message.emojis.push(exports.UserData_TypingIndicatorEmoji.internalBinaryRead(reader, reader.uint32(), options));
|
|
5184
|
+
break;
|
|
5185
|
+
case /* discord_protos.users.v1.UserData.TypingIndicatorAnimation animation */ 2:
|
|
5186
|
+
message.animation = reader.int32();
|
|
5187
|
+
break;
|
|
5188
|
+
case /* discord_protos.users.v1.UserData.TypingSuggestion typing_suggestion */ 3:
|
|
5189
|
+
message.typingSuggestion = reader.int32();
|
|
5190
|
+
break;
|
|
5191
|
+
default:
|
|
5192
|
+
let u = options.readUnknownField;
|
|
5193
|
+
if (u === "throw")
|
|
5194
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5195
|
+
let d = reader.skip(wireType);
|
|
5196
|
+
if (u !== false)
|
|
5197
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5198
|
+
}
|
|
5199
|
+
}
|
|
5200
|
+
return message;
|
|
5201
|
+
}
|
|
5202
|
+
internalBinaryWrite(message, writer, options) {
|
|
5203
|
+
/* repeated discord_protos.users.v1.UserData.TypingIndicatorEmoji emojis = 1; */
|
|
5204
|
+
for (let i = 0; i < message.emojis.length; i++)
|
|
5205
|
+
exports.UserData_TypingIndicatorEmoji.internalBinaryWrite(message.emojis[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5206
|
+
/* discord_protos.users.v1.UserData.TypingIndicatorAnimation animation = 2; */
|
|
5207
|
+
if (message.animation !== 0)
|
|
5208
|
+
writer.tag(2, runtime_1.WireType.Varint).int32(message.animation);
|
|
5209
|
+
/* discord_protos.users.v1.UserData.TypingSuggestion typing_suggestion = 3; */
|
|
5210
|
+
if (message.typingSuggestion !== 0)
|
|
5211
|
+
writer.tag(3, runtime_1.WireType.Varint).int32(message.typingSuggestion);
|
|
5212
|
+
let u = options.writeUnknownFields;
|
|
5213
|
+
if (u !== false)
|
|
5214
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5215
|
+
return writer;
|
|
5216
|
+
}
|
|
5217
|
+
}
|
|
5218
|
+
/**
|
|
5219
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserTypingIndicatorStyle
|
|
5220
|
+
*/
|
|
5221
|
+
exports.UserData_UserTypingIndicatorStyle = new UserData_UserTypingIndicatorStyle$Type();
|