code: public boolean isValidLength(AccountType type)
      {
          Checks.notNull(type, "AccountType");
          final int length = length();
          switch (type)
          {
              case BOT:
                  return length <= MessageEmbed.EMBED_MAX_LENGTH_BOT;
              case CLIENT:
              default:
                  return length <= MessageEmbed.EMBED_MAX_LENGTH_CLIENT;
          }
      }
docs: Checks whether the constructed {@link net.dv8tion.jda.core.entities.MessageEmbed MessageEmbed}
  is within the limits for the specified {@link net.dv8tion.jda.core.AccountType AccountType}
  <ul>
  <li>Bot: {@value MessageEmbed#EMBED_MAX_LENGTH_BOT}</li>
  <li>Client: {@value MessageEmbed#EMBED_MAX_LENGTH_CLIENT}</li>
  </ul>
  
  @param  type
  The {@link net.dv8tion.jda.core.AccountType AccountType} to validate
  
  @throws java.lang.IllegalArgumentException
  If provided with {@code null}
  
  @return True, if the {@link #length() length} is less or equal to the specific limit