Feature: New button -> Aprove later. Just removes the interaction collector.

master
masterhc 9 months ago
parent b152eedffc
commit d24e6e4190

@ -470,6 +470,12 @@ exports.torrent = (bot)=>
.setLabel('Remove')
.setStyle(ButtonStyle.Danger),
)
.addComponents(
new ButtonBuilder()
.setCustomId('AproveLater'+random)
.setLabel('Aprove Later')
.setStyle(ButtonStyle.Success),
)
const filter = i => i.customId === 'Redirect'+random || i.customId === 'Remove'+random;
let message = await user.send({embeds: [embed], components: [row] });
@ -519,7 +525,7 @@ exports.torrent = (bot)=>
});
return m.message.delete();
}
if(m.customId === 'AproveLater'+random) return
await fetch("https://utorrent.wordfights.com/api/v2/torrents/setForceStart", {
"headers": {
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",

Loading…
Cancel
Save