code: private void handlePrivateChannel(JsonNode channel) {
          // A CHANNEL_CREATE packet is sent every time a bot account receives a message, see
          // https://github.com/hammerandchisel/discord-api-docs/issues/184
          UserImpl recipient = (UserImpl) api.getOrCreateUser(channel.get("recipients").get(0));
          if (!recipient.getPrivateChannel().isPresent()) {
              PrivateChannel privateChannel = recipient.getOrCreateChannel(channel);
              PrivateChannelCreateEvent event = new PrivateChannelCreateEventImpl(privateChannel);
  
              api.getEventDispatcher().dispatchPrivateChannelCreateEvent(api, recipient, event);
          }
      }
docs: Handles a private channel creation.
  
  @param channel The channel data.