0
const value = message.content.split(' ')[2]
  if(!value) let value = 1;
  const value2show = 50000000 * value;
  let tro = new Discord.MessageEmbed()
  .setAuthor("Sɱαɾƚx Gαɱιɳɠ YT", "https://cdn.discordapp.com/avatars/701780003959996497/2354797acbac60d124a80de2c3e52191.png?size=256")
  .setFooter("Bot made by Sɱαɾƚx Gαɱιɳɠ YT")
  .setTitle("Pepe Trophy")
  .setDescription(`Pepe Trophy x${value} costs **⏣${value2show}**`)
  .setTimestamp()
  message.lineReplyNoMention(tro)

I want that if there is no value it set the value to 1 thank for help.

VLAZ
  • 26,331
  • 9
  • 49
  • 67

0 Answers0