mezon-js-protobuf 1.4.38 → 1.4.39
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.
|
@@ -120,6 +120,8 @@ export interface ClanJoin {
|
|
|
120
120
|
}
|
|
121
121
|
/** Join operation for a realtime chat channel. */
|
|
122
122
|
export interface ChannelJoin {
|
|
123
|
+
/** The clan id */
|
|
124
|
+
clan_id: string;
|
|
123
125
|
/** The id of channel or group */
|
|
124
126
|
channel_id: string;
|
|
125
127
|
/** The user ID to DM with, group ID to chat with, or channel id to join. */
|
|
@@ -756,6 +758,7 @@ export declare const Envelope: {
|
|
|
756
758
|
clan_id?: string | undefined;
|
|
757
759
|
} | undefined;
|
|
758
760
|
channel_join?: {
|
|
761
|
+
clan_id?: string | undefined;
|
|
759
762
|
channel_id?: string | undefined;
|
|
760
763
|
channel_label?: string | undefined;
|
|
761
764
|
type?: number | undefined;
|
|
@@ -1243,6 +1246,7 @@ export declare const Envelope: {
|
|
|
1243
1246
|
clan_id?: string | undefined;
|
|
1244
1247
|
} & { [K_4 in Exclude<keyof I["clan_join"], "clan_id">]: never; }) | undefined;
|
|
1245
1248
|
channel_join?: ({
|
|
1249
|
+
clan_id?: string | undefined;
|
|
1246
1250
|
channel_id?: string | undefined;
|
|
1247
1251
|
channel_label?: string | undefined;
|
|
1248
1252
|
type?: number | undefined;
|
|
@@ -1250,6 +1254,7 @@ export declare const Envelope: {
|
|
|
1250
1254
|
hidden?: boolean | undefined;
|
|
1251
1255
|
mode?: number | undefined;
|
|
1252
1256
|
} & {
|
|
1257
|
+
clan_id?: string | undefined;
|
|
1253
1258
|
channel_id?: string | undefined;
|
|
1254
1259
|
channel_label?: string | undefined;
|
|
1255
1260
|
type?: number | undefined;
|
|
@@ -2404,6 +2409,7 @@ export declare const Envelope: {
|
|
|
2404
2409
|
clan_id?: string | undefined;
|
|
2405
2410
|
} | undefined;
|
|
2406
2411
|
channel_join?: {
|
|
2412
|
+
clan_id?: string | undefined;
|
|
2407
2413
|
channel_id?: string | undefined;
|
|
2408
2414
|
channel_label?: string | undefined;
|
|
2409
2415
|
type?: number | undefined;
|
|
@@ -2891,6 +2897,7 @@ export declare const Envelope: {
|
|
|
2891
2897
|
clan_id?: string | undefined;
|
|
2892
2898
|
} & { [K_98 in Exclude<keyof I_1["clan_join"], "clan_id">]: never; }) | undefined;
|
|
2893
2899
|
channel_join?: ({
|
|
2900
|
+
clan_id?: string | undefined;
|
|
2894
2901
|
channel_id?: string | undefined;
|
|
2895
2902
|
channel_label?: string | undefined;
|
|
2896
2903
|
type?: number | undefined;
|
|
@@ -2898,6 +2905,7 @@ export declare const Envelope: {
|
|
|
2898
2905
|
hidden?: boolean | undefined;
|
|
2899
2906
|
mode?: number | undefined;
|
|
2900
2907
|
} & {
|
|
2908
|
+
clan_id?: string | undefined;
|
|
2901
2909
|
channel_id?: string | undefined;
|
|
2902
2910
|
channel_label?: string | undefined;
|
|
2903
2911
|
type?: number | undefined;
|
|
@@ -4181,6 +4189,7 @@ export declare const ChannelJoin: {
|
|
|
4181
4189
|
fromJSON(object: any): ChannelJoin;
|
|
4182
4190
|
toJSON(message: ChannelJoin): unknown;
|
|
4183
4191
|
create<I extends {
|
|
4192
|
+
clan_id?: string | undefined;
|
|
4184
4193
|
channel_id?: string | undefined;
|
|
4185
4194
|
channel_label?: string | undefined;
|
|
4186
4195
|
type?: number | undefined;
|
|
@@ -4188,6 +4197,7 @@ export declare const ChannelJoin: {
|
|
|
4188
4197
|
hidden?: boolean | undefined;
|
|
4189
4198
|
mode?: number | undefined;
|
|
4190
4199
|
} & {
|
|
4200
|
+
clan_id?: string | undefined;
|
|
4191
4201
|
channel_id?: string | undefined;
|
|
4192
4202
|
channel_label?: string | undefined;
|
|
4193
4203
|
type?: number | undefined;
|
|
@@ -4196,6 +4206,7 @@ export declare const ChannelJoin: {
|
|
|
4196
4206
|
mode?: number | undefined;
|
|
4197
4207
|
} & { [K in Exclude<keyof I, keyof ChannelJoin>]: never; }>(base?: I | undefined): ChannelJoin;
|
|
4198
4208
|
fromPartial<I_1 extends {
|
|
4209
|
+
clan_id?: string | undefined;
|
|
4199
4210
|
channel_id?: string | undefined;
|
|
4200
4211
|
channel_label?: string | undefined;
|
|
4201
4212
|
type?: number | undefined;
|
|
@@ -4203,6 +4214,7 @@ export declare const ChannelJoin: {
|
|
|
4203
4214
|
hidden?: boolean | undefined;
|
|
4204
4215
|
mode?: number | undefined;
|
|
4205
4216
|
} & {
|
|
4217
|
+
clan_id?: string | undefined;
|
|
4206
4218
|
channel_id?: string | undefined;
|
|
4207
4219
|
channel_label?: string | undefined;
|
|
4208
4220
|
type?: number | undefined;
|
|
@@ -3653,27 +3653,38 @@ var ClanJoin = {
|
|
|
3653
3653
|
}
|
|
3654
3654
|
};
|
|
3655
3655
|
function createBaseChannelJoin() {
|
|
3656
|
-
return {
|
|
3656
|
+
return {
|
|
3657
|
+
clan_id: "",
|
|
3658
|
+
channel_id: "",
|
|
3659
|
+
channel_label: "",
|
|
3660
|
+
type: 0,
|
|
3661
|
+
persistence: void 0,
|
|
3662
|
+
hidden: void 0,
|
|
3663
|
+
mode: 0
|
|
3664
|
+
};
|
|
3657
3665
|
}
|
|
3658
3666
|
var ChannelJoin = {
|
|
3659
3667
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3668
|
+
if (message.clan_id !== "") {
|
|
3669
|
+
writer.uint32(10).string(message.clan_id);
|
|
3670
|
+
}
|
|
3660
3671
|
if (message.channel_id !== "") {
|
|
3661
|
-
writer.uint32(
|
|
3672
|
+
writer.uint32(18).string(message.channel_id);
|
|
3662
3673
|
}
|
|
3663
3674
|
if (message.channel_label !== "") {
|
|
3664
|
-
writer.uint32(
|
|
3675
|
+
writer.uint32(26).string(message.channel_label);
|
|
3665
3676
|
}
|
|
3666
3677
|
if (message.type !== 0) {
|
|
3667
|
-
writer.uint32(
|
|
3678
|
+
writer.uint32(32).int32(message.type);
|
|
3668
3679
|
}
|
|
3669
3680
|
if (message.persistence !== void 0) {
|
|
3670
|
-
BoolValue.encode({ value: message.persistence }, writer.uint32(
|
|
3681
|
+
BoolValue.encode({ value: message.persistence }, writer.uint32(42).fork()).ldelim();
|
|
3671
3682
|
}
|
|
3672
3683
|
if (message.hidden !== void 0) {
|
|
3673
|
-
BoolValue.encode({ value: message.hidden }, writer.uint32(
|
|
3684
|
+
BoolValue.encode({ value: message.hidden }, writer.uint32(50).fork()).ldelim();
|
|
3674
3685
|
}
|
|
3675
3686
|
if (message.mode !== 0) {
|
|
3676
|
-
writer.uint32(
|
|
3687
|
+
writer.uint32(56).int32(message.mode);
|
|
3677
3688
|
}
|
|
3678
3689
|
return writer;
|
|
3679
3690
|
},
|
|
@@ -3685,21 +3696,24 @@ var ChannelJoin = {
|
|
|
3685
3696
|
const tag = reader.uint32();
|
|
3686
3697
|
switch (tag >>> 3) {
|
|
3687
3698
|
case 1:
|
|
3688
|
-
message.
|
|
3699
|
+
message.clan_id = reader.string();
|
|
3689
3700
|
break;
|
|
3690
3701
|
case 2:
|
|
3691
|
-
message.
|
|
3702
|
+
message.channel_id = reader.string();
|
|
3692
3703
|
break;
|
|
3693
3704
|
case 3:
|
|
3694
|
-
message.
|
|
3705
|
+
message.channel_label = reader.string();
|
|
3695
3706
|
break;
|
|
3696
3707
|
case 4:
|
|
3697
|
-
message.
|
|
3708
|
+
message.type = reader.int32();
|
|
3698
3709
|
break;
|
|
3699
3710
|
case 5:
|
|
3700
|
-
message.
|
|
3711
|
+
message.persistence = BoolValue.decode(reader, reader.uint32()).value;
|
|
3701
3712
|
break;
|
|
3702
3713
|
case 6:
|
|
3714
|
+
message.hidden = BoolValue.decode(reader, reader.uint32()).value;
|
|
3715
|
+
break;
|
|
3716
|
+
case 7:
|
|
3703
3717
|
message.mode = reader.int32();
|
|
3704
3718
|
break;
|
|
3705
3719
|
default:
|
|
@@ -3711,6 +3725,7 @@ var ChannelJoin = {
|
|
|
3711
3725
|
},
|
|
3712
3726
|
fromJSON(object) {
|
|
3713
3727
|
return {
|
|
3728
|
+
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
3714
3729
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
3715
3730
|
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
3716
3731
|
type: isSet4(object.type) ? Number(object.type) : 0,
|
|
@@ -3721,6 +3736,7 @@ var ChannelJoin = {
|
|
|
3721
3736
|
},
|
|
3722
3737
|
toJSON(message) {
|
|
3723
3738
|
const obj = {};
|
|
3739
|
+
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
3724
3740
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
3725
3741
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
3726
3742
|
message.type !== void 0 && (obj.type = Math.round(message.type));
|
|
@@ -3733,14 +3749,15 @@ var ChannelJoin = {
|
|
|
3733
3749
|
return ChannelJoin.fromPartial(base != null ? base : {});
|
|
3734
3750
|
},
|
|
3735
3751
|
fromPartial(object) {
|
|
3736
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3752
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
3737
3753
|
const message = createBaseChannelJoin();
|
|
3738
|
-
message.
|
|
3739
|
-
message.
|
|
3740
|
-
message.
|
|
3741
|
-
message.
|
|
3742
|
-
message.
|
|
3743
|
-
message.
|
|
3754
|
+
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
3755
|
+
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
3756
|
+
message.channel_label = (_c = object.channel_label) != null ? _c : "";
|
|
3757
|
+
message.type = (_d = object.type) != null ? _d : 0;
|
|
3758
|
+
message.persistence = (_e = object.persistence) != null ? _e : void 0;
|
|
3759
|
+
message.hidden = (_f = object.hidden) != null ? _f : void 0;
|
|
3760
|
+
message.mode = (_g = object.mode) != null ? _g : 0;
|
|
3744
3761
|
return message;
|
|
3745
3762
|
}
|
|
3746
3763
|
};
|
|
@@ -3640,27 +3640,38 @@ var ClanJoin = {
|
|
|
3640
3640
|
}
|
|
3641
3641
|
};
|
|
3642
3642
|
function createBaseChannelJoin() {
|
|
3643
|
-
return {
|
|
3643
|
+
return {
|
|
3644
|
+
clan_id: "",
|
|
3645
|
+
channel_id: "",
|
|
3646
|
+
channel_label: "",
|
|
3647
|
+
type: 0,
|
|
3648
|
+
persistence: void 0,
|
|
3649
|
+
hidden: void 0,
|
|
3650
|
+
mode: 0
|
|
3651
|
+
};
|
|
3644
3652
|
}
|
|
3645
3653
|
var ChannelJoin = {
|
|
3646
3654
|
encode(message, writer = import_minimal4.default.Writer.create()) {
|
|
3655
|
+
if (message.clan_id !== "") {
|
|
3656
|
+
writer.uint32(10).string(message.clan_id);
|
|
3657
|
+
}
|
|
3647
3658
|
if (message.channel_id !== "") {
|
|
3648
|
-
writer.uint32(
|
|
3659
|
+
writer.uint32(18).string(message.channel_id);
|
|
3649
3660
|
}
|
|
3650
3661
|
if (message.channel_label !== "") {
|
|
3651
|
-
writer.uint32(
|
|
3662
|
+
writer.uint32(26).string(message.channel_label);
|
|
3652
3663
|
}
|
|
3653
3664
|
if (message.type !== 0) {
|
|
3654
|
-
writer.uint32(
|
|
3665
|
+
writer.uint32(32).int32(message.type);
|
|
3655
3666
|
}
|
|
3656
3667
|
if (message.persistence !== void 0) {
|
|
3657
|
-
BoolValue.encode({ value: message.persistence }, writer.uint32(
|
|
3668
|
+
BoolValue.encode({ value: message.persistence }, writer.uint32(42).fork()).ldelim();
|
|
3658
3669
|
}
|
|
3659
3670
|
if (message.hidden !== void 0) {
|
|
3660
|
-
BoolValue.encode({ value: message.hidden }, writer.uint32(
|
|
3671
|
+
BoolValue.encode({ value: message.hidden }, writer.uint32(50).fork()).ldelim();
|
|
3661
3672
|
}
|
|
3662
3673
|
if (message.mode !== 0) {
|
|
3663
|
-
writer.uint32(
|
|
3674
|
+
writer.uint32(56).int32(message.mode);
|
|
3664
3675
|
}
|
|
3665
3676
|
return writer;
|
|
3666
3677
|
},
|
|
@@ -3672,21 +3683,24 @@ var ChannelJoin = {
|
|
|
3672
3683
|
const tag = reader.uint32();
|
|
3673
3684
|
switch (tag >>> 3) {
|
|
3674
3685
|
case 1:
|
|
3675
|
-
message.
|
|
3686
|
+
message.clan_id = reader.string();
|
|
3676
3687
|
break;
|
|
3677
3688
|
case 2:
|
|
3678
|
-
message.
|
|
3689
|
+
message.channel_id = reader.string();
|
|
3679
3690
|
break;
|
|
3680
3691
|
case 3:
|
|
3681
|
-
message.
|
|
3692
|
+
message.channel_label = reader.string();
|
|
3682
3693
|
break;
|
|
3683
3694
|
case 4:
|
|
3684
|
-
message.
|
|
3695
|
+
message.type = reader.int32();
|
|
3685
3696
|
break;
|
|
3686
3697
|
case 5:
|
|
3687
|
-
message.
|
|
3698
|
+
message.persistence = BoolValue.decode(reader, reader.uint32()).value;
|
|
3688
3699
|
break;
|
|
3689
3700
|
case 6:
|
|
3701
|
+
message.hidden = BoolValue.decode(reader, reader.uint32()).value;
|
|
3702
|
+
break;
|
|
3703
|
+
case 7:
|
|
3690
3704
|
message.mode = reader.int32();
|
|
3691
3705
|
break;
|
|
3692
3706
|
default:
|
|
@@ -3698,6 +3712,7 @@ var ChannelJoin = {
|
|
|
3698
3712
|
},
|
|
3699
3713
|
fromJSON(object) {
|
|
3700
3714
|
return {
|
|
3715
|
+
clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
|
|
3701
3716
|
channel_id: isSet4(object.channel_id) ? String(object.channel_id) : "",
|
|
3702
3717
|
channel_label: isSet4(object.channel_label) ? String(object.channel_label) : "",
|
|
3703
3718
|
type: isSet4(object.type) ? Number(object.type) : 0,
|
|
@@ -3708,6 +3723,7 @@ var ChannelJoin = {
|
|
|
3708
3723
|
},
|
|
3709
3724
|
toJSON(message) {
|
|
3710
3725
|
const obj = {};
|
|
3726
|
+
message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
|
|
3711
3727
|
message.channel_id !== void 0 && (obj.channel_id = message.channel_id);
|
|
3712
3728
|
message.channel_label !== void 0 && (obj.channel_label = message.channel_label);
|
|
3713
3729
|
message.type !== void 0 && (obj.type = Math.round(message.type));
|
|
@@ -3720,14 +3736,15 @@ var ChannelJoin = {
|
|
|
3720
3736
|
return ChannelJoin.fromPartial(base != null ? base : {});
|
|
3721
3737
|
},
|
|
3722
3738
|
fromPartial(object) {
|
|
3723
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3739
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
3724
3740
|
const message = createBaseChannelJoin();
|
|
3725
|
-
message.
|
|
3726
|
-
message.
|
|
3727
|
-
message.
|
|
3728
|
-
message.
|
|
3729
|
-
message.
|
|
3730
|
-
message.
|
|
3741
|
+
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
3742
|
+
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
3743
|
+
message.channel_label = (_c = object.channel_label) != null ? _c : "";
|
|
3744
|
+
message.type = (_d = object.type) != null ? _d : 0;
|
|
3745
|
+
message.persistence = (_e = object.persistence) != null ? _e : void 0;
|
|
3746
|
+
message.hidden = (_f = object.hidden) != null ? _f : void 0;
|
|
3747
|
+
message.mode = (_g = object.mode) != null ? _g : 0;
|
|
3731
3748
|
return message;
|
|
3732
3749
|
}
|
|
3733
3750
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.39",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -222,6 +222,8 @@ export interface ClanJoin {
|
|
|
222
222
|
|
|
223
223
|
/** Join operation for a realtime chat channel. */
|
|
224
224
|
export interface ChannelJoin {
|
|
225
|
+
/** The clan id */
|
|
226
|
+
clan_id: string;
|
|
225
227
|
/** The id of channel or group */
|
|
226
228
|
channel_id: string;
|
|
227
229
|
/** The user ID to DM with, group ID to chat with, or channel id to join. */
|
|
@@ -1824,28 +1826,39 @@ export const ClanJoin = {
|
|
|
1824
1826
|
};
|
|
1825
1827
|
|
|
1826
1828
|
function createBaseChannelJoin(): ChannelJoin {
|
|
1827
|
-
return {
|
|
1829
|
+
return {
|
|
1830
|
+
clan_id: "",
|
|
1831
|
+
channel_id: "",
|
|
1832
|
+
channel_label: "",
|
|
1833
|
+
type: 0,
|
|
1834
|
+
persistence: undefined,
|
|
1835
|
+
hidden: undefined,
|
|
1836
|
+
mode: 0,
|
|
1837
|
+
};
|
|
1828
1838
|
}
|
|
1829
1839
|
|
|
1830
1840
|
export const ChannelJoin = {
|
|
1831
1841
|
encode(message: ChannelJoin, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1842
|
+
if (message.clan_id !== "") {
|
|
1843
|
+
writer.uint32(10).string(message.clan_id);
|
|
1844
|
+
}
|
|
1832
1845
|
if (message.channel_id !== "") {
|
|
1833
|
-
writer.uint32(
|
|
1846
|
+
writer.uint32(18).string(message.channel_id);
|
|
1834
1847
|
}
|
|
1835
1848
|
if (message.channel_label !== "") {
|
|
1836
|
-
writer.uint32(
|
|
1849
|
+
writer.uint32(26).string(message.channel_label);
|
|
1837
1850
|
}
|
|
1838
1851
|
if (message.type !== 0) {
|
|
1839
|
-
writer.uint32(
|
|
1852
|
+
writer.uint32(32).int32(message.type);
|
|
1840
1853
|
}
|
|
1841
1854
|
if (message.persistence !== undefined) {
|
|
1842
|
-
BoolValue.encode({ value: message.persistence! }, writer.uint32(
|
|
1855
|
+
BoolValue.encode({ value: message.persistence! }, writer.uint32(42).fork()).ldelim();
|
|
1843
1856
|
}
|
|
1844
1857
|
if (message.hidden !== undefined) {
|
|
1845
|
-
BoolValue.encode({ value: message.hidden! }, writer.uint32(
|
|
1858
|
+
BoolValue.encode({ value: message.hidden! }, writer.uint32(50).fork()).ldelim();
|
|
1846
1859
|
}
|
|
1847
1860
|
if (message.mode !== 0) {
|
|
1848
|
-
writer.uint32(
|
|
1861
|
+
writer.uint32(56).int32(message.mode);
|
|
1849
1862
|
}
|
|
1850
1863
|
return writer;
|
|
1851
1864
|
},
|
|
@@ -1858,21 +1871,24 @@ export const ChannelJoin = {
|
|
|
1858
1871
|
const tag = reader.uint32();
|
|
1859
1872
|
switch (tag >>> 3) {
|
|
1860
1873
|
case 1:
|
|
1861
|
-
message.
|
|
1874
|
+
message.clan_id = reader.string();
|
|
1862
1875
|
break;
|
|
1863
1876
|
case 2:
|
|
1864
|
-
message.
|
|
1877
|
+
message.channel_id = reader.string();
|
|
1865
1878
|
break;
|
|
1866
1879
|
case 3:
|
|
1867
|
-
message.
|
|
1880
|
+
message.channel_label = reader.string();
|
|
1868
1881
|
break;
|
|
1869
1882
|
case 4:
|
|
1870
|
-
message.
|
|
1883
|
+
message.type = reader.int32();
|
|
1871
1884
|
break;
|
|
1872
1885
|
case 5:
|
|
1873
|
-
message.
|
|
1886
|
+
message.persistence = BoolValue.decode(reader, reader.uint32()).value;
|
|
1874
1887
|
break;
|
|
1875
1888
|
case 6:
|
|
1889
|
+
message.hidden = BoolValue.decode(reader, reader.uint32()).value;
|
|
1890
|
+
break;
|
|
1891
|
+
case 7:
|
|
1876
1892
|
message.mode = reader.int32();
|
|
1877
1893
|
break;
|
|
1878
1894
|
default:
|
|
@@ -1885,6 +1901,7 @@ export const ChannelJoin = {
|
|
|
1885
1901
|
|
|
1886
1902
|
fromJSON(object: any): ChannelJoin {
|
|
1887
1903
|
return {
|
|
1904
|
+
clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
|
|
1888
1905
|
channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
|
|
1889
1906
|
channel_label: isSet(object.channel_label) ? String(object.channel_label) : "",
|
|
1890
1907
|
type: isSet(object.type) ? Number(object.type) : 0,
|
|
@@ -1896,6 +1913,7 @@ export const ChannelJoin = {
|
|
|
1896
1913
|
|
|
1897
1914
|
toJSON(message: ChannelJoin): unknown {
|
|
1898
1915
|
const obj: any = {};
|
|
1916
|
+
message.clan_id !== undefined && (obj.clan_id = message.clan_id);
|
|
1899
1917
|
message.channel_id !== undefined && (obj.channel_id = message.channel_id);
|
|
1900
1918
|
message.channel_label !== undefined && (obj.channel_label = message.channel_label);
|
|
1901
1919
|
message.type !== undefined && (obj.type = Math.round(message.type));
|
|
@@ -1911,6 +1929,7 @@ export const ChannelJoin = {
|
|
|
1911
1929
|
|
|
1912
1930
|
fromPartial<I extends Exact<DeepPartial<ChannelJoin>, I>>(object: I): ChannelJoin {
|
|
1913
1931
|
const message = createBaseChannelJoin();
|
|
1932
|
+
message.clan_id = object.clan_id ?? "";
|
|
1914
1933
|
message.channel_id = object.channel_id ?? "";
|
|
1915
1934
|
message.channel_label = object.channel_label ?? "";
|
|
1916
1935
|
message.type = object.type ?? 0;
|