title: discord.js v13 - Cannot use Interaction Options
body: <p>For the past while, I've been trying to make an &quot;Eval&quot; command using Slash Commands.<br>
  I have a system in place that goes along with my Command Handler, however, it's specifically the &quot;Eval&quot; command that's causing issues.</p>
  <p>I'm currently using <code>@discordjs/builders</code>, however, it's not helping with this.<br>
  This is how the Slash Command is built:<br></p>
  <pre class="lang-js prettyprint-override"><code>slash: new SlashCommandBuilder()
          .setName(&quot;eval&quot;)
          .setDescription(&quot;Evaluates JavaScript code.&quot;)
          .addStringOption(option =&gt; option.setName(&quot;code&quot;).setDescription(&quot;Your JavaScript code.&quot;).setRequired(true)),
  </code></pre>
  <p>In Discord, the &quot;code&quot; option doesn't even appear. When I try to run the command by running:</p>
  <pre><code>/eval ```js
  console.log(&quot;Hello World&quot;);
  </code></pre>
  <p>I get an error saying <code>Cannot read property &quot;replace&quot; of null</code><br>
  Here's the script for the Slash Command:</p>
  <pre class="lang-js prettyprint-override"><code>runSlash: async (interaction, bot) =&gt; {
          if (interaction.user.id !== interaction.guild.ownerId) {
              interaction.reply(&quot;You are not allowed to do this.&quot;);
              return bot.commandLog(`${msg.author} attempted to use the EVAL command, but was not Atelo.`);
          }
  
          const toEval = interaction.options.getString(&quot;code&quot;);
  
          console.log(interaction.options);
          /*
          this is what ^^^ returns:
            CommandInteractionOptionResolver {
               _group: null,
               _subcommand: null,
               _hoistedOptions: []
            }
          */
          console.log(interaction.options.getString(&quot;code&quot;)); // Also returns null
  
          const toRemove = /^(```js)|(```)$/gi;
  
          const evalEmbed = new MessageEmbed();
          try {
              const evalled = eval(toEval.replace(toRemove, ''));
              evalEmbed.setTitle(&quot;Evaluation Successful&quot;);
              evalEmbed.addFields({ name: &quot;Output&quot;, value: &quot;```js\n&quot; + evalled + &quot;\n```&quot; });
              evalEmbed.setFooter(interaction.guild.name, interaction.guild.iconURL());
              evalEmbed.setTimestamp();
          } catch (err) {
              evalEmbed.setTitle(&quot;Evaluation Failed&quot;);
              evalEmbed.addFields({ name: &quot;Output&quot;, value: &quot;```js\n&quot; + err + &quot;\n```&quot; });
              evalEmbed.setFooter(interaction.guild.name, interaction.guild.iconURL());
              evalEmbed.setTimestamp();
          }
  
          interaction.reply({ embeds: [evalEmbed] });
          return bot.commandLog(`${msg.author} successfully used the EVAL command.`);
      }
  }
  </code></pre>
  <p>I've tried debugging for a while, and I am extremely confused.
  Thanks for any help you can provide!</p>