#Markdown Error

3 messages · Page 1 of 1 (latest)

wicked cliff
const { Events, inlineCode, codeBlock } = require('discord.js');

module.exports = {
    name: Events.InteractionCreate,
    async execute(interaction) {
        if (!interaction.isModalSubmit()) return;

        // Define Vars
        const channel = await interaction.guild.channels.fetch('1225452546001211464')
        const username = interaction.fields.getTextInputValue('Q1').trim('\n');
        const decide = interaction.fields.getTextInputValue('Q2').trim('\n');
        const retrial = interaction.fields.getTextInputValue('Q3').trim('\n');
        const whytrainer = interaction.fields.getTextInputValue('Q4').trim('\n');
        const expect = interaction.fields.getTextInputValue('Q5').trim('\n');

        if (interaction.customId === 'modalapp') {
            await interaction.reply({ content: 'Your submission was received successfully!', ephemeral: true});
           
            channel.send(`- ${interaction.user.tag}\
            >>> **Roblox username**: ${username}
            **How would you decided someone's rank?**: ${decide}
            **What roles can private retrial?**: ${retrial}
            **Why do you want to be a trainer?**: ${whytrainer}
            **What do you expect from being a trainer?**: ${expect}`)
        }
    }
};
median duneBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
wicked cliff

multiple lines break the markdown