code: public ServerTextChannel getOrCreateServerTextChannel(JsonNode data) {
          long id = Long.parseLong(data.get("id").asText());
          ChannelType type = ChannelType.fromId(data.get("type").asInt());
          synchronized (this) {
              // TODO Treat news channels differently
              if (type == ChannelType.SERVER_TEXT_CHANNEL || type == ChannelType.SERVER_NEWS_CHANNEL) {
                  return getTextChannelById(id).orElseGet(() -> new ServerTextChannelImpl(api, this, data));
              }
          }
          // Invalid channel type
          return null;
      }
docs: Gets or creates a server text channel.
  
  @param data The json data of the channel.
  @return The server text channel.