@elara-services/tickets 4.3.5 → 4.3.6

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/index.d.ts CHANGED
@@ -55,6 +55,7 @@ declare module "@elara-services/tickets" {
55
55
  category?: string;
56
56
  closeReason?: boolean;
57
57
  supportCommentThread?: boolean;
58
+ supportCommentThreadMentionSupport?: boolean;
58
59
  limitOnePerUser?: boolean;
59
60
  open?: Pick<MessageOptions, "content" | "embeds">
60
61
  close?: {
package/lib/v13.js CHANGED
@@ -525,7 +525,7 @@ module.exports = class Tickets extends base {
525
525
  type: 12,
526
526
  })
527
527
  .catch((e) => this._debug(e));
528
- if (thread && !this.getSupportIds.empty) {
528
+ if (thread && !this.getSupportIds.empty && this.options.ticket?.supportCommentThreadMentionSupport === true) {
529
529
  await thread
530
530
  .send({
531
531
  content: `${this.getSupportIds.roles.length ? this.getSupportIds.roles.map((c) => `<@&${c}>`).join(" ") : ""}${this.getSupportIds.users.length ? `${this.getSupportIds.roles.length ? ` | ` : ""}${this.getSupportIds.users.map((c) => `<@${c}>`).join(" ")}` : ""}`,
package/lib/v14.js CHANGED
@@ -530,7 +530,7 @@ module.exports = class Tickets extends base {
530
530
  type: 12,
531
531
  })
532
532
  .catch((e) => this._debug(e));
533
- if (thread && !this.getSupportIds.empty) {
533
+ if (thread && !this.getSupportIds.empty && this.options.ticket?.supportCommentThreadMentionSupport === true) {
534
534
  await thread
535
535
  .send({
536
536
  content: `${this.getSupportIds.roles.length ? this.getSupportIds.roles.map((c) => `<@&${c}>`).join(" ") : ""}${this.getSupportIds.users.length ? `${this.getSupportIds.roles.length ? ` | ` : ""}${this.getSupportIds.users.map((c) => `<@${c}>`).join(" ")}` : ""}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elara-services/tickets",
3
- "version": "4.3.5",
3
+ "version": "4.3.6",
4
4
  "description": "Helper for tickets",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",