From 3d35bcb1e8cfcee82cf38965c765757d676ede65 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Fri, 12 Aug 2022 14:20:05 +0200 Subject: [PATCH] feat: change name of threads --- .gitignore | 2 -- commands/misc/sugerencias.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 53ee171..e8b82fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ .env node_modules/ -logs.txt -notes.txt json.sqlite \ No newline at end of file diff --git a/commands/misc/sugerencias.ts b/commands/misc/sugerencias.ts index c617f2e..6b87c2e 100644 --- a/commands/misc/sugerencias.ts +++ b/commands/misc/sugerencias.ts @@ -24,7 +24,7 @@ export default commandModule({ // finally send the message to the text channel const message1 = modal.client.guilds.cache.get('928018226330337280').channels.cache.get('1007269448140476436') as TextChannel const message2 = await (await message1.send({embeds: [modalEmbed]})) - message2.startThread({name: 'Sugerencia', autoArchiveDuration: ThreadAutoArchiveDuration.ThreeDays, reason: 'AUTOMATIZADO: Hilo para discutir sobre la sugerencia.'}) + message2.startThread({name: `Sugerencia de ${modal.user.username}`, autoArchiveDuration: ThreadAutoArchiveDuration.ThreeDays, reason: 'AUTOMATIZADO: Hilo para discutir sobre la sugerencia.'}) message2.react("✅") message2.react("❎") // and return the user that it worked