title: discord.js slash command api loading error
body: <p>I am trying to create a <code>/config &lt;subcommand&gt;</code> system for my bot, but it gives me an error with the slash command body.
  Here is the current body I have for the command</p>
  <pre class="lang-js prettyprint-override"><code>          name: 'config',
            description: &quot;The config system for the bot&quot;,
            userPermissions: ['MANAGE_GUILD'],
            options: [
                {
                    name: 'prefix',
                    description: &quot;Set a different prefifor the server&quot;,
                    type: &quot;SUB_COMMAND&quot;,
                    options: [
                        {name: &quot;new-prefix&quot;, description: &quot;The new prefix that you want to set&quot;, type: &quot;STRING&quot;, required: true}
                    ]
                }
            ]
  </code></pre>
  <p>The error is</p>
  <pre><code>DiscordAPIError[50035]: Invalid Form Body
  0.options[0].options[0].type[NUMBER_TYPE_COERCE]: Value &quot;STRING&quot; is not int.
  0.options[0].type[NUMBER_TYPE_COERCE]: Value &quot;SUB_COMMAND&quot; is not int.
  </code></pre>
  <p>I have never encountered this error before</p>