From e431cf33524a514307009aab00f0edb3b8e7177c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A7=81Ash=C3=BB=EA=A7=82?= <30575805+Ashu11-A@users.noreply.github.com> Date: Fri, 24 May 2024 03:20:45 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Implementing=20switches=20for=20?= =?UTF-8?q?editing=20and=20production=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/tickets/src/class/Ticket.ts | 34 +++++++++++++++++-- .../src/discord/components/Template/Switch.ts | 26 ++++++++++++++ .../discord/components/Template/editEmbed.ts | 2 +- .../discord/components/Template/setSystem.ts | 2 +- 4 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 plugins/tickets/src/discord/components/Template/Switch.ts diff --git a/plugins/tickets/src/class/Ticket.ts b/plugins/tickets/src/class/Ticket.ts index 751240bd..2bc94201 100644 --- a/plugins/tickets/src/class/Ticket.ts +++ b/plugins/tickets/src/class/Ticket.ts @@ -3,7 +3,7 @@ import { ButtonBuilder } from "@/discord/base/CustomIntetaction" import Template, { TypeTemplate } from "@/entity/Template.entry" import { ActionDrawer } from "@/functions/actionDrawer" import { checkChannel } from "@/functions/checkChannel" -import { ActionRowBuilder, ButtonInteraction, ButtonStyle, CacheType, CommandInteraction, EmbedBuilder, ModalSubmitInteraction } from "discord.js" +import { ActionRowBuilder, ButtonInteraction, ButtonStyle, CacheType, CommandInteraction, EmbedBuilder, ModalSubmitInteraction, TextInputBuilder } from "discord.js" const template = new Database