@discordjs/builders 1.8.2 → 1.8.3-dev.1717589068-346d1be72

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/dist/index.js CHANGED
@@ -33,8 +33,7 @@ var __decorateClass = (decorators, target, key, kind) => {
33
33
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
34
34
  if (decorator = decorators[i])
35
35
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
36
- if (kind && result)
37
- __defProp(target, key, result);
36
+ if (kind && result) __defProp(target, key, result);
38
37
  return result;
39
38
  };
40
39
 
@@ -173,8 +172,7 @@ var titlePredicate = fieldNamePredicate.nullable.setValidationEnabled(isValidati
173
172
 
174
173
  // src/util/normalizeArray.ts
175
174
  function normalizeArray(arr) {
176
- if (Array.isArray(arr[0]))
177
- return [...arr[0]];
175
+ if (Array.isArray(arr[0])) return [...arr[0]];
178
176
  return arr;
179
177
  }
180
178
  __name(normalizeArray, "normalizeArray");
@@ -195,8 +193,7 @@ var EmbedBuilder = class {
195
193
  */
196
194
  constructor(data = {}) {
197
195
  this.data = { ...data };
198
- if (data.timestamp)
199
- this.data.timestamp = new Date(data.timestamp).toISOString();
196
+ if (data.timestamp) this.data.timestamp = new Date(data.timestamp).toISOString();
200
197
  }
201
198
  /**
202
199
  * Appends fields to the embed.
@@ -226,10 +223,8 @@ var EmbedBuilder = class {
226
223
  const normalizedFields = normalizeArray(fields);
227
224
  validateFieldLength(normalizedFields.length, this.data.fields);
228
225
  embedFieldsArrayPredicate.parse(normalizedFields);
229
- if (this.data.fields)
230
- this.data.fields.push(...normalizedFields);
231
- else
232
- this.data.fields = normalizedFields;
226
+ if (this.data.fields) this.data.fields.push(...normalizedFields);
227
+ else this.data.fields = normalizedFields;
233
228
  return this;
234
229
  }
235
230
  /**
@@ -264,10 +259,8 @@ var EmbedBuilder = class {
264
259
  spliceFields(index, deleteCount, ...fields) {
265
260
  validateFieldLength(fields.length - deleteCount, this.data.fields);
266
261
  embedFieldsArrayPredicate.parse(fields);
267
- if (this.data.fields)
268
- this.data.fields.splice(index, deleteCount, ...fields);
269
- else
270
- this.data.fields = fields;
262
+ if (this.data.fields) this.data.fields.splice(index, deleteCount, ...fields);
263
+ else this.data.fields = fields;
271
264
  return this;
272
265
  }
273
266
  /**
@@ -2760,7 +2753,7 @@ function embedLength(data) {
2760
2753
  __name(embedLength, "embedLength");
2761
2754
 
2762
2755
  // src/index.ts
2763
- var version = "1.8.2";
2756
+ var version = "1.8.3-dev.1717589068-346d1be72";
2764
2757
  // Annotate the CommonJS export names for ESM import in node:
2765
2758
  0 && (module.exports = {
2766
2759
  ActionRowBuilder,