discord-protos 1.2.167 → 1.2.168

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.
@@ -317,6 +317,7 @@ message Experiment {
317
317
  optional Override override = 3;
318
318
  bool is_sunset_rule = 4;
319
319
  Subtype subtype = 5;
320
+ string hash = 6;
320
321
  }
321
322
 
322
323
  enum Phase {
@@ -915,6 +915,10 @@ export interface Experiment_Rule {
915
915
  * @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.Subtype subtype = 5
916
916
  */
917
917
  subtype: Experiment_Subtype;
918
+ /**
919
+ * @generated from protobuf field: string hash = 6
920
+ */
921
+ hash: string;
918
922
  }
919
923
  /**
920
924
  * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.DebugConfig
@@ -3234,7 +3234,8 @@ class Experiment_Rule$Type extends runtime_4.MessageType {
3234
3234
  { no: 2, name: "filters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_Filter },
3235
3235
  { no: 3, name: "override", kind: "message", T: () => exports.Experiment_Override },
3236
3236
  { no: 4, name: "is_sunset_rule", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
3237
- { no: 5, name: "subtype", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Subtype", Experiment_Subtype, "SUBTYPE_"] }
3237
+ { no: 5, name: "subtype", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Subtype", Experiment_Subtype, "SUBTYPE_"] },
3238
+ { no: 6, name: "hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3238
3239
  ]);
3239
3240
  }
3240
3241
  create(value) {
@@ -3243,6 +3244,7 @@ class Experiment_Rule$Type extends runtime_4.MessageType {
3243
3244
  message.filters = [];
3244
3245
  message.isSunsetRule = false;
3245
3246
  message.subtype = 0;
3247
+ message.hash = "";
3246
3248
  if (value !== undefined)
3247
3249
  (0, runtime_3.reflectionMergePartial)(this, message, value);
3248
3250
  return message;
@@ -3267,6 +3269,9 @@ class Experiment_Rule$Type extends runtime_4.MessageType {
3267
3269
  case /* discord_protos.discord_experimentation.v1.Experiment.Subtype subtype */ 5:
3268
3270
  message.subtype = reader.int32();
3269
3271
  break;
3272
+ case /* string hash */ 6:
3273
+ message.hash = reader.string();
3274
+ break;
3270
3275
  default:
3271
3276
  let u = options.readUnknownField;
3272
3277
  if (u === "throw")
@@ -3294,6 +3299,9 @@ class Experiment_Rule$Type extends runtime_4.MessageType {
3294
3299
  /* discord_protos.discord_experimentation.v1.Experiment.Subtype subtype = 5; */
3295
3300
  if (message.subtype !== 0)
3296
3301
  writer.tag(5, runtime_2.WireType.Varint).int32(message.subtype);
3302
+ /* string hash = 6; */
3303
+ if (message.hash !== "")
3304
+ writer.tag(6, runtime_2.WireType.LengthDelimited).string(message.hash);
3297
3305
  let u = options.writeUnknownFields;
3298
3306
  if (u !== false)
3299
3307
  (u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-protos",
3
- "version": "1.2.167",
3
+ "version": "1.2.168",
4
4
  "description": "A parser for Discord's protobufs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",