From e202c23aa9a843e6343d6d9b342045b8fcb0d579 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: Sat, 15 Jun 2024 20:22:52 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20System=20data=20not=20app?= =?UTF-8?q?ly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/discord/components/Template/AddSelectActions.ts | 1 + .../tickets/src/discord/components/Template/ButtonsSetType.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/plugins/tickets/src/discord/components/Template/AddSelectActions.ts b/plugins/tickets/src/discord/components/Template/AddSelectActions.ts index 408aab39..30032db1 100644 --- a/plugins/tickets/src/discord/components/Template/AddSelectActions.ts +++ b/plugins/tickets/src/discord/components/Template/AddSelectActions.ts @@ -88,6 +88,7 @@ new Component({ .setProperties(templateData.properties) .setSelects(templateData.selects) .setType(templateData.type) + .setSystem(templateData.systems) .render() await interaction.message?.edit({ components }) diff --git a/plugins/tickets/src/discord/components/Template/ButtonsSetType.ts b/plugins/tickets/src/discord/components/Template/ButtonsSetType.ts index 19640436..50051893 100644 --- a/plugins/tickets/src/discord/components/Template/ButtonsSetType.ts +++ b/plugins/tickets/src/discord/components/Template/ButtonsSetType.ts @@ -29,11 +29,14 @@ for (const [action, type] of Object.entries(actions)) { }).setColor('Green')] }) + setTimeout(() => interaction.deleteReply(), 5000) + const buttonBuilder = new TemplateButtonBuilder() const components = buttonBuilder .setMode('debug') .setProperties(templateData.properties) .setSelects(templateData.selects) + .setSystem(templateData.systems) .setType(type) .render()