What’s wrong with this code? I have declare the Tiktok but the when I run this code, the Tiktok didn’t read as a function
const { Tiktok } = require('@tobyg74/tiktok-api-dl');
if (msg.body.startsWith('.t')){ const words = msg.body.split(' ') words.shift();
const args = words.join(' ');
Tiktok(args).then((result) => {
msg.reply(result.result.video[0])
})
}
New contributor
Galang Cakrabuana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.