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.
            });
        }
Was this page helpful?