title: How to make an eval command?
body: <p>The code I currently have doesn't work.</p>
  <pre><code>  const args2 = message.content.split(&quot; &quot;)
   
    if (message.content.startsWith(&quot;d!eval&quot;)) {
      if(!message.author.id == &quot;749092490556080158&quot;) return;
      try {
        const code = args2.join(&quot; &quot;);
        let evaled = eval(code);
        
   
        if (!typeof evaled == &quot;string&quot;)
          evaled = require(&quot;util&quot;).inspect(evaled);
   
        message.channel.send(clean(evaled), {code:&quot;xl&quot;});
      } catch (err) {
      console.log(err)
      message.channel.send(err)
      }
    }
    });
  </code></pre>
  <p>Instead, it returns the error:</p>
  <pre><code>    at Client.&lt;anonymous&gt; (/home/runner/WorthySimplisticProblems/index.js:20:25)
      at Client.emit (events.js:315:20)
      at Client.EventEmitter.emit (domain.js:483:12)
      at MessageCreateAction.handle (/home/runner/WorthySimplisticProblems/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
      at Object.module.exports [as MESSAGE_CREATE] (/home/runner/WorthySimplisticProblems/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
      at WebSocketManager.handlePacket (/home/runner/WorthySimplisticProblems/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
      at WebSocketShard.onPacket (/home/runner/WorthySimplisticProblems/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
      at WebSocketShard.onMessage (/home/runner/WorthySimplisticProblems/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
      at WebSocket.onMessage (/home/runner/WorthySimplisticProblems/node_modules/ws/lib/event-target.js:132:16)
      at WebSocket.emit (events.js:315:20)
  (node:421) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
      at RequestHandler.execute (/home/runner/WorthySimplisticProblems/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at async RequestHandler.push (/home/runner/WorthySimplisticProblems/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
  (node:421) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
  (node:421) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  </code></pre>
  <p>I'm not sure how to fix it, if someone could leave a github link or something like that, it would be much appreciated!</p>