title: Is there a way to check if a discord account token is valid or not?
body: <p>As the title says, I'm trying to create a script that will check if a discord account token (not a bot token) is valid or not. I've tried regex matching like this:</p>
  <pre class="lang-js prettyprint-override"><code>/^(?=\S*[a-z])(?=\S*[A-Z])(?=\S*\d)(?=\S*[^\w\s]\S{5,}$/g.test(token)
  </code></pre>
  <p>but I don't think this is the best method, and I feel like some tokens can slip through the net if I use this sort of detection method to check if they're valid.</p>