title: Discord.js client immediately crashing as soon as a member joins
body: <p>I have a Discord bot that is supposed to check the user info of a server member as soon as they join. Yet, what happens as soon as a member joins is that the client immediately crashes.
  Thank you in advance for reading this. If I am doing anything else wrong in this code, let me know!
  This is the code where the event is:</p>
  <p><strong>Error:</strong></p>
  <pre class="lang-js prettyprint-override"><code>/home/container/node_modules/discord.js/src/rest/RequestHandler.js:349
        throw new DiscordAPIError(data, res.status, request);
              ^
  
  DiscordAPIError: Missing Permissions
      at RequestHandler.execute (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async RequestHandler.push (/home/container/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
      at async GuildMemberManager.kick (/home/container/node_modules/discord.js/src/managers/GuildMemberManager.js:344:5) {   method: 'delete',   path: '/guilds/900147696902479942/members/817852730197671996',   code: 50013,   httpStatus: 403,   requestData: { json: undefined, files: [] } }
  </code></pre>
  <p><strong>Code:</strong></p>
  <pre class="lang-js prettyprint-override"><code>client.on(&quot;guildMemberAdd&quot;, member =&gt; {
     if (Date.now() - member.user.createdAt &lt; 1000 * 60 * 60 * 24 * 10) {
         const role = interaction.options.getRole('test');
    member.roles.add(role)
  }
      else
          member.kick()
  });
  </code></pre>