Guest User

Untitled

a guest
Jan 11th, 2023
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var embed = new EmbedBuilder()
  2.             .setImage(result.body.image.split(" ").join(""))
  3.             .setColor(settings.embed_colour)
  4.             .setFooter({ text: `Displaying ${interaction.options._hoistedOptions[0].value.toLowerCase()} (hentai)` })
  5.             interaction.reply({ embeds: [ embed ], components: [ button ] })
  6.             .then(msg => {
  7.                 setTimeout(function() {
  8.                     var button = new ActionRowBuilder()
  9.                     .addComponents(
  10.                         new ButtonBuilder()
  11.                         .setCustomId(`repeat.hentai.${interaction.options._hoistedOptions[0].value.toLowerCase()}`)
  12.                         .setLabel('Repeat')
  13.                         .setStyle(ButtonStyle.Primary)
  14.                         .setDisabled(false),
  15.                     );
  16.  
  17.                     msg.update({ embeds: [ embed ], components: [ button ] })
  18.                 }, 5000);
  19.             })
  20.             .catch(console.error);
Advertisement
Add Comment
Please, Sign In to add comment