@elara-services/tickets 4.3.0 → 4.3.1

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/lib/v13.js CHANGED
@@ -114,9 +114,9 @@ module.exports = class Tickets extends base {
114
114
  }
115
115
  }
116
116
  }
117
- const hasEmbeds = this.options.ticket?.close?.confirm?.embeds;
117
+ const hasEmbeds = this.options.ticket?.close?.confirm?.embeds || [];
118
118
  let embs = await Promise.all(
119
- (hasEmbeds.length
119
+ (hasEmbeds?.length
120
120
  ? hasEmbeds
121
121
  : [
122
122
  embed(undefined, {
package/lib/v14.js CHANGED
@@ -110,9 +110,9 @@ module.exports = class Tickets extends base {
110
110
  }
111
111
  }
112
112
  }
113
- const hasEmbeds = this.options.ticket?.close?.confirm?.embeds;
113
+ const hasEmbeds = this.options.ticket?.close?.confirm?.embeds || [];
114
114
  let embs = await Promise.all(
115
- (hasEmbeds.length
115
+ (hasEmbeds?.length
116
116
  ? hasEmbeds
117
117
  : [
118
118
  embed(undefined, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elara-services/tickets",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "Helper for tickets",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",