mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-28 03:22:18 +00:00
feat: change name of threads
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,3 @@
|
||||
.env
|
||||
node_modules/
|
||||
logs.txt
|
||||
notes.txt
|
||||
json.sqlite
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user