title: Check if text channel is private? JAVA JDA DV8TION
body: <p>I think this is a pretty simple question with an even more simple answer but I seriously can't manage to find out if the text channel that the event occurs in is private or not. Anyways, here's a segment of my code:</p>
  <pre class="lang-java prettyprint-override"><code>@Override
      public void onMessageReceived(MessageReceivedEvent e)
      {
          if (e.isFromType(ChannelType.PRIVATE)) {
                  System.out.println(&quot;locked channel&quot;);
              } else {
                  System.out.println(&quot;not locked&quot;);
              }
           }
  
  </code></pre>
  <p>I want it to spit out whether the channel that I type in is private or not and that code always says its &quot;not locked&quot;.</p>