Send a const in a code block

Need to send a constant inside a code block
const number = 5;
await interaction.channel.send("
const number = 5;
await interaction.channel.send("
{number}
")
")
3 Replies
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
[ 💖 ] ElBretxa
Well, Looks like I couldnt send it because it had a code block inside the interaction send, but I need to send a const inside a message that is a block
d.js docs
d.js docs•2y ago
method codeBlock Wraps the content inside a code block with an optional language.
Want results from more Discord servers?
Add your server