feat: change name of threads

This commit is contained in:
2022-08-12 14:20:05 +02:00
parent 91b11e58f8
commit 3d35bcb1e8
2 changed files with 1 additions and 3 deletions

2
.gitignore vendored
View File

@@ -1,5 +1,3 @@
.env
node_modules/
logs.txt
notes.txt
json.sqlite

View File

@@ -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