code: private void handleCategory(JsonNode channelJson) {
          long serverId = channelJson.get("guild_id").asLong();
          long channelId = channelJson.get("id").asLong();
          api.getPossiblyUnreadyServerById(serverId).ifPresent(server -> server.getChannelCategoryById(channelId)
                  .ifPresent(channel -> {
                              dispatchServerChannelDeleteEvent(channel);
                              ((ServerImpl) server).removeChannelFromCache(channel.getId());
                          }
                  ));
          api.removeObjectListeners(ChannelCategory.class, channelId);
          api.removeObjectListeners(ServerChannel.class, channelId);
          api.removeObjectListeners(Channel.class, channelId);
      }
docs: Handles server text channel deletion.
  
  @param channelJson The channel data.