Create threads

how can i create threads using this code?
function createchannelcommand(guildId, embed) {
testeSchema.findOne({ Guild: guildId }, async (err, data) => {
const testChannel = client.channels.cache.get(data.Channel);
testChannel.
});
}
function createchannelcommand(guildId, embed) {
testeSchema.findOne({ Guild: guildId }, async (err, data) => {
const testChannel = client.channels.cache.get(data.Channel);
testChannel.
});
}
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
property TextChannel#threads A manager of the threads belonging to this channel
Want results from more Discord servers?
Add your server