Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const cekbtn = new MessageActionRow()
- .addComponents(
- new MessageButton()
- .setCustomId('mau_down')
- .setLabel(`Download!`)
- .setEmoji('⏬')
- .setStyle('SECONDARY')
- );
- const msgSend = await msg.reply({
- content: `https://www.youtube.com/watch?v=` + id,
- components: [cekbtn]
- });
- const filter = (i) => i.user.id === msg.author.id;
- const collector = msgSend.createMessageComponentCollector({
- time: 15_000,
- filter,
- });
- collector.on('collect', async i => {
- await i.reply({
- content: 'ok',
- ephermal: true
- })
- })
- collector.on('end', async i => {
- console.log('habis')
- })
Advertisement
Add Comment
Please, Sign In to add comment