Code has errors

const embed = {
title: `Chapter: ${chapter}, Verse: ${verse}`,
description: `**Shlok:**\`\`\`${shlok}\`\`\`\n\n**Transliteration:**\`\`\`${transliteration}\`\`\`\n\n**Explanation:** \`\`\`${tej}\`\`\``,
color: 0x262733,
footer: {
text: `English Translation:\n${trans} `,
},
components: [
new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setStyle(ButtonStyle.Link)
.setLabel('Read More')
.setURL(`https://www.holy-bhagavad-gita.org/chapter/${chapter}/verse/${verse}`)
),
],
};
const embed = {
title: `Chapter: ${chapter}, Verse: ${verse}`,
description: `**Shlok:**\`\`\`${shlok}\`\`\`\n\n**Transliteration:**\`\`\`${transliteration}\`\`\`\n\n**Explanation:** \`\`\`${tej}\`\`\``,
color: 0x262733,
footer: {
text: `English Translation:\n${trans} `,
},
components: [
new ActionRowBuilder().addComponents(
new ButtonBuilder()
.setStyle(ButtonStyle.Link)
.setLabel('Read More')
.setURL(`https://www.holy-bhagavad-gita.org/chapter/${chapter}/verse/${verse}`)
),
],
};
6 Replies
Favna
Favna11mo ago
Please wrap your code in a codeblock as well as showing the actual error that occurs.
Spinel
Spinel11mo ago
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson)How to ask questions the smart way (Raymond)
Lioness100
Lioness10011mo ago
^ that, but also you're missing a custom ID for your button
!, Priyanshu
!, Priyanshu11mo ago
And other things?
Lioness100
Lioness10011mo ago
Please follow this
Favna
Favna11mo ago
Closing this due to lack of response from author. For subsequent poss please follow the guidelines posted by @Spinel from the start
Want results from more Discord servers?
Add your server