Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var embed = new EmbedBuilder()
- .setImage(result.body.image.split(" ").join(""))
- .setColor(settings.embed_colour)
- .setFooter({ text: `Displaying ${interaction.options._hoistedOptions[0].value.toLowerCase()} (hentai)` })
- interaction.reply({ embeds: [ embed ], components: [ button ] })
- .then(msg => {
- setTimeout(function() {
- var button = new ActionRowBuilder()
- .addComponents(
- new ButtonBuilder()
- .setCustomId(`repeat.hentai.${interaction.options._hoistedOptions[0].value.toLowerCase()}`)
- .setLabel('Repeat')
- .setStyle(ButtonStyle.Primary)
- .setDisabled(false),
- );
- msg.update({ embeds: [ embed ], components: [ button ] })
- }, 5000);
- })
- .catch(console.error);
Advertisement
Add Comment
Please, Sign In to add comment