Abwegig
DIAdiscord.js - Imagine an app
•Created by Abwegig on 5/15/2024 in #djs-questions
Weird error in connection with mongodb
✅
4 replies
DIAdiscord.js - Imagine an app
•Created by Abwegig on 3/17/2024 in #djs-questions
How to ping a role an a thread but not adding them to it
Okay, thanks!
3 replies
DIAdiscord.js - Imagine an app
•Created by Abwegig on 3/15/2024 in #djs-questions
How can I create a private thread? ([email protected])
okay, thanks
7 replies
DIAdiscord.js - Imagine an app
•Created by Abwegig on 3/15/2024 in #djs-questions
How can I create a private thread? ([email protected])
if (interaction.customId === "selectReasonMenu") {
const selectedValue = interaction.values[0];
console.log(
Ausgewählter Wert: ${selectedValue}
);
interaction.channel.threads
.create({
name: Ticket - ${selectedValue}
,
autoArchiveDuration: 1440,
type: ChannelType.PrivateThread,
reason: Thread für das Ticket mit dem Grund: ${selectedValue}
,
startMessage: interaction.message,
})
.then(async (thread) => {
const threadChannel = await interaction.guild.channels.fetch(
thread.id
);
await thread.members.add(interaction.user.id);
})
.catch(console.error);
}7 replies
DIAdiscord.js - Imagine an app
•Created by Abwegig on 3/15/2024 in #djs-questions
How can I create a private thread? ([email protected])
no error in both cases
7 replies