let parent = (await interaction.fetchReply()) as Message;
let thread = await interaction.channel.threads.create({
name: ...,
autoArchiveDuration: options.lifetime,
type: "GUILD_PUBLIC_THREAD",
startMessage: parent as Message,
});
await thread.join();
await thread.send({ embeds: [...] });
await interaction.editReply({
content: ...,
embeds: [
{
title: ...,
footer: { text: ... },
},
],
});
let parent = (await interaction.fetchReply()) as Message;
let thread = await interaction.channel.threads.create({
name: ...,
autoArchiveDuration: options.lifetime,
type: "GUILD_PUBLIC_THREAD",
startMessage: parent as Message,
});
await thread.join();
await thread.send({ embeds: [...] });
await interaction.editReply({
content: ...,
embeds: [
{
title: ...,
footer: { text: ... },
},
],
});