title: Discord.js v13 TypeError in slash command handler
body: <p>I want to create a basic mute command that simply adds a role to the user without a time parameter, how can I implement this in Discord.js v13? I already have slash commands and a handler command setup however I am receiving the following error:</p>
  <blockquote>
  <p>TypeError: Cannot read properties of undefined (reading 'cache')</p>
  </blockquote>
  <p><strong>My Code:</strong></p>
  <pre class="lang-js prettyprint-override"><code>const { SlashCommandBuilder } = require(&quot;@discordjs/builders&quot;)
  const { MessageEmbed } = require(&quot;discord.js&quot;)
  const Discord = require(&quot;discord.js&quot;)
  
  module.exports = {
      data: new SlashCommandBuilder()
      .setName(&quot;mute&quot;)
      .setDescription(&quot;El bot muteara a un usuario del server&quot;)
      .addUserOption(option =&gt; 
          option
          .setName(&quot;miembro&quot;) // target
          .setDescription(&quot;Mencione al miembro que desea mutear&quot;)
          .setRequired(true)
      )
      .addStringOption(option =&gt; 
          option
          .setName(&quot;razon&quot;) // reason
          .setDescription(&quot;Razon por la que el usuario sera muteado&quot;)
          .setRequired(true)
      ),
  
      async run(client, interaction){
          const target = interaction.options.getUser(&quot;miembro&quot;);
          const reason = interaction.options.getString(&quot;razon&quot;);
  
          if(!interaction.guild.roles.cache.get('902652079762468975')) return interaction.followUp({ embeds: [new MessageEmbed().setColor(&quot;RED&quot;).setDescription(&quot;El rol de muteado no existe&quot;)]})
          await target.roles.cache.add(&quot;902652079762468975&quot;);
          interaction.followUp({ embeds: [new MessageEmbed().setColor(&quot;GREEN&quot;).setDescription(`✅ ${target} ha sido muteado. Razon:${reason}`)]})
      }
  }
  </code></pre>