From 3ee972c9ff80f324435188c421b85d427cc97cc4 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 6 Sep 2022 00:16:07 +0100 Subject: [PATCH] fix edit topic log --- src/modals/topic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modals/topic.js b/src/modals/topic.js index e9af947..db3e458 100644 --- a/src/modals/topic.js +++ b/src/modals/topic.js @@ -29,6 +29,7 @@ module.exports = class TopicModal extends Modal { }, id: true, openingMessageId: true, + topic: true, }; const original = await client.prisma.ticket.findUnique({ select, @@ -41,7 +42,7 @@ module.exports = class TopicModal extends Modal { }); const getMessage = client.i18n.getLocale(ticket.guild.locale); - if (topic) await interaction.channel.setTopic(`<@${ticket.createdById}> | ${topic}`); + if (topic) interaction.channel.setTopic(`<@${ticket.createdById}> | ${topic}`); const opening = await interaction.channel.messages.fetch(ticket.openingMessageId); if (opening && opening.embeds.length >= 2) {