title: I don't know how to get slash commands working for my dice command
body: <p>I am trying to make a dice slash command with a command handler that posts a picture of the dice, but it says <code>url1</code> <code>undefined</code>. When I try just posting the pictures directly, it says <em>interaction failed: this interaction has already been acknowledged</em>.</p>
  <pre class="lang-js prettyprint-override"><code>module.exports= {
      name: &quot;diceslash&quot;,
      description:&quot;dice slashcommand&quot;,
      execute(interaction){
          const diceroll = Math.floor(Math.random() * 6) + 1
          const dices = Math.floor(Math.random() * 6) + 1
  
          const ans = diceroll + dices;
  
          if (diceroll == 1){
              const url1 = 'https://imgur.com/a/YdAmiRe';
          }
          if (diceroll == 2){
              const url1 = 'https://imgur.com/a/w35gKMR';
          }
          if (diceroll == 3){
              const url1 = 'https://imgur.com/a/MkDVhQS';
          }
          if (diceroll == 4){  
              const url1 = 'https://imgur.com/a/WCuaCbL';         
          }
          if (diceroll == 5){
              const url1 = 'https://imgur.com/a/0xyPIkx';
          }
          if (diceroll == 6){
              const url1 = 'https://imgur.com/a/urv1H42';
          }
          if (dices == 1){
              const url2 = 'https://imgur.com/a/YdAmiRe';
          }
          if (dices == 2){
              const url2 = 'https://imgur.com/a/w35gKMR';
          }
          if (dices == 3){
              const url2 = 'https://imgur.com/a/MkDVhQS';
          }
          if (dices == 4){  
              const url2 = 'https://imgur.com/a/WCuaCbL';         
          }
          if (dices == 5){
              const url2 = 'https://imgur.com/a/0xyPIkx';
          }
          if (dices == 6){
              const url2 = 'https://imgur.com/a/urv1H42';
          }
       
          interaction.reply ({content: url1+&quot; &quot;+url2})
          interaction.reply({content: &quot;you got &quot;+ ans})
      }
  }
  </code></pre>