title: TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type Function
body: <p>I have this little problem here:</p>
  
  <blockquote>
    <p>events.js:200<br> throw new errors.ERR_INVALID_ARG_TYPE('listener', 'Function', listener);<br>
     ^<br>
    TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type 
    Function. Received type undefined<br>
    at _addListener (events.js:200:11)<br>
    at Client.addListener (events.js:259:10)<br>
    at Object. (D:\Yoshio\index.js:7:5)<br>
    at Module._compile (internal/modules/cjs/loader.js:689:30)<br>
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)<br>
    at Module.load (internal/modules/cjs/loader.js:599:32)<br>
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)<br>
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)<br>
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)<br>
    at startup (internal/bootstrap/node.js:266:19)<br></p>
  </blockquote>
  
  <p>I searched for answers but I couldn't find any, please tell me what to do.<br>
  Here is my code:</p>
  
  <pre><code>const Discord = require("discord.js");
  
  const TOKEN = "mytoken";
  
  var bot = new Discord.Client();
  
  bot.on("message"), function(message) {
    console.log(message.content);
  };
  
  bot.login(TOKEN);
  </code></pre>