diff --git a/plugins/tickets/src/class/Ticket.ts b/plugins/tickets/src/class/Ticket.ts index 2bc94201..f3d4987d 100644 --- a/plugins/tickets/src/class/Ticket.ts +++ b/plugins/tickets/src/class/Ticket.ts @@ -109,9 +109,9 @@ export class Ticket { emoji: { name: '📄' } }), new ButtonBuilder({ - customId: 'EmbedCategory', - label: 'Panel Category', - emoji: { name: '🖥️' }, + customId: 'AddCategory', + label: 'Add Categoria', + emoji: { name: '🔖' }, style: ButtonStyle.Secondary }), new ButtonBuilder({ diff --git a/plugins/tickets/src/discord/components/Template/AddElements.ts b/plugins/tickets/src/discord/components/Template/AddElements.ts new file mode 100644 index 00000000..b1c18977 --- /dev/null +++ b/plugins/tickets/src/discord/components/Template/AddElements.ts @@ -0,0 +1,173 @@ +import { Database } from "@/controller/database"; +import { Component } from "@/discord/base"; +import { ModalBuilder } from "@/discord/base/CustomIntetaction"; +import Template from "@/entity/Template.entry"; +import { ActionRowBuilder, APITextInputComponent, ComponentType, EmbedBuilder, TextInputBuilder } from "discord.js"; + +const template = new Database