discord-protos 1.2.301 → 1.2.302
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.
|
@@ -1222,6 +1222,10 @@ export interface PreloadedUserSettings_Favorites {
|
|
|
1222
1222
|
* @generated from protobuf field: optional google.protobuf.BoolValue guild_visible = 3
|
|
1223
1223
|
*/
|
|
1224
1224
|
guildVisible?: BoolValue;
|
|
1225
|
+
/**
|
|
1226
|
+
* @generated from protobuf field: bool auto_add_joined_threads = 4
|
|
1227
|
+
*/
|
|
1228
|
+
autoAddJoinedThreads: boolean;
|
|
1225
1229
|
}
|
|
1226
1230
|
/**
|
|
1227
1231
|
* @generated from protobuf message discord_protos.discord_users.v1.PreloadedUserSettings.AudioContextSetting
|
|
@@ -3883,13 +3883,15 @@ class PreloadedUserSettings_Favorites$Type extends runtime_4.MessageType {
|
|
|
3883
3883
|
super("discord_protos.discord_users.v1.PreloadedUserSettings.Favorites", [
|
|
3884
3884
|
{ no: 1, name: "favorite_channels", kind: "map", K: 6 /*ScalarType.FIXED64*/, V: { kind: "message", T: () => exports.PreloadedUserSettings_FavoriteChannel } },
|
|
3885
3885
|
{ no: 2, name: "muted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3886
|
-
{ no: 3, name: "guild_visible", kind: "message", T: () => wrappers_5.BoolValue }
|
|
3886
|
+
{ no: 3, name: "guild_visible", kind: "message", T: () => wrappers_5.BoolValue },
|
|
3887
|
+
{ no: 4, name: "auto_add_joined_threads", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
3887
3888
|
]);
|
|
3888
3889
|
}
|
|
3889
3890
|
create(value) {
|
|
3890
3891
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3891
3892
|
message.favoriteChannels = {};
|
|
3892
3893
|
message.muted = false;
|
|
3894
|
+
message.autoAddJoinedThreads = false;
|
|
3893
3895
|
if (value !== undefined)
|
|
3894
3896
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3895
3897
|
return message;
|
|
@@ -3908,6 +3910,9 @@ class PreloadedUserSettings_Favorites$Type extends runtime_4.MessageType {
|
|
|
3908
3910
|
case /* optional google.protobuf.BoolValue guild_visible */ 3:
|
|
3909
3911
|
message.guildVisible = wrappers_5.BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.guildVisible);
|
|
3910
3912
|
break;
|
|
3913
|
+
case /* bool auto_add_joined_threads */ 4:
|
|
3914
|
+
message.autoAddJoinedThreads = reader.bool();
|
|
3915
|
+
break;
|
|
3911
3916
|
default:
|
|
3912
3917
|
let u = options.readUnknownField;
|
|
3913
3918
|
if (u === "throw")
|
|
@@ -3949,6 +3954,9 @@ class PreloadedUserSettings_Favorites$Type extends runtime_4.MessageType {
|
|
|
3949
3954
|
/* optional google.protobuf.BoolValue guild_visible = 3; */
|
|
3950
3955
|
if (message.guildVisible)
|
|
3951
3956
|
wrappers_5.BoolValue.internalBinaryWrite(message.guildVisible, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3957
|
+
/* bool auto_add_joined_threads = 4; */
|
|
3958
|
+
if (message.autoAddJoinedThreads !== false)
|
|
3959
|
+
writer.tag(4, runtime_1.WireType.Varint).bool(message.autoAddJoinedThreads);
|
|
3952
3960
|
let u = options.writeUnknownFields;
|
|
3953
3961
|
if (u !== false)
|
|
3954
3962
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|