From a4419642ea374bd9e25394bb8b411e2ccca4bf3c 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: Sun, 26 May 2024 21:55:34 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Rename:=20Ticket=20to=20Te?= =?UTF-8?q?mplate,=20and=20new=20class=20TemplateBuilder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/class/{Ticket.ts => Template.ts} | 18 ++- plugins/tickets/src/class/TemplateBuilder.ts | 95 ++++++++++++++ .../tickets/src/discord/commands/ticket.ts | 119 ++++++++++++++++++ .../components/Template/AddElements.ts | 24 ++-- .../src/discord/components/Template/Switch.ts | 18 +-- .../discord/components/Template/editEmbed.ts | 8 +- .../discord/components/Template/setSystem.ts | 8 +- plugins/tickets/src/discord/configs/config.ts | 9 +- 8 files changed, 261 insertions(+), 38 deletions(-) rename plugins/tickets/src/class/{Ticket.ts => Template.ts} (91%) create mode 100644 plugins/tickets/src/class/TemplateBuilder.ts create mode 100644 plugins/tickets/src/discord/commands/ticket.ts diff --git a/plugins/tickets/src/class/Ticket.ts b/plugins/tickets/src/class/Template.ts similarity index 91% rename from plugins/tickets/src/class/Ticket.ts rename to plugins/tickets/src/class/Template.ts index 3b2feb9a..569ab8c1 100644 --- a/plugins/tickets/src/class/Ticket.ts +++ b/plugins/tickets/src/class/Template.ts @@ -1,10 +1,10 @@ import { Database } from "@/controller/database" import { ButtonBuilder, StringSelectMenuBuilder } from "@/discord/base/CustomIntetaction" -import Template, { TypeTemplate } from "@/entity/Template.entry" +import TemplateTable, { TypeTemplate } from "@/entity/Template.entry" import { ActionDrawer } from "@/functions/actionDrawer" import { checkChannel } from "@/functions/checkChannel" import { ActionRowBuilder, ButtonInteraction, ButtonStyle, CacheType, CommandInteraction, EmbedBuilder, ModalSubmitInteraction, SelectMenuBuilder, StringSelectMenuInteraction } from "discord.js" -const template = new Database